Hola a todos:
Estoy empezando a usar el control chart con enlace a datos sqldatasource
Tengo
<asp:Chart ID="Chart1" DataSourceID="sqldsgraficosexo" runat="server"><Series><asp:Series Name="Series1" XValueMember="hombre" YValueMembers="nsexo11" ChartType="Column"></asp:Series></Series><ChartAreas><asp:ChartArea Name="ChartArea1"></asp:ChartArea></ChartAreas></asp:Chart>
El sqldatasource es
<asp:SqlDataSource ID="sqldsgraficosexo" ConnectionString="<%$ ConnectionStrings:Cresolined%>" SelectCommandType="StoredProcedure" SelectCommand="seleccionar_datos_grafico_sexo_encuestas" runat="server"><SelectParameters><asp:QueryStringParameter Name="id0" QueryStringField="id0" /><asp:QueryStringParameter Name="idioma" QueryStringField="idioma" /></SelectParameters> </asp:SqlDataSource>
El sp es
USE [Cresolined] GO /****** Object: StoredProcedure [dbo].[seleccionar_datos_encuestas] Script Date: 05/07/2015 9:48:18 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO create PROCEDURE [dbo].[seleccionar_datos_grafico_sexo_encuestas] ( @id0 int, @idioma tinyint ) AS set nocount on select case @idioma when 1 then 'Hombre' when 2 then 'Man' when 3 then 'Homme' else 'Homem' end as hombre,case @idioma when 1 then 'Mujer' when 2 then 'Woman' when 3 then 'Femme' else 'Mulher' end as mujer, (select count(e20) from dbo.encuestas2 where e21=e10 and sexo=1 and opcion=1) as nsexo11,(select count(e20) from dbo.encuestas2 where e21=e10 and sexo=2 and opcion=1) as nsexo21, (select count(e20) from dbo.encuestas2 where e21=e10 and sexo=1 and opcion=2) as nsexo12,(select count(e20) from dbo.encuestas2 where e21=e10 and sexo=2 and opcion=2) as nsexo22, (select count(e20) from dbo.encuestas2 where e21=e10 and sexo=1 and opcion=3) as nsexo13,(select count(e20) from dbo.encuestas2 where e21=e10 and sexo=2 and opcion=3) as nsexo23 from dbo.encuestas1 where e10=@id0
Quiero poner en la coordenada x hombre y mujer en 3 series diferentes, y en la coordenada y los valores nsexo11, nsexo21 y los demás campos
Me sale un error
pila vacía
¿Qué pasa?
Gracias de antemano