2009-08-17 5 views
0

J'ai une application web sur laquelle il y a 2 contrôle graphique comme suit:Pouvons-nous montrer 3 valeurs Y sur le contrôle de la carte?

<asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1" 
      Height="589px" Width="1109px"> 
    <Series> 
     <asp:Series Name="Series1" IsValueShownAsLabel="True" LabelAngle="90" 
        XValueMember="Question" YValueMembers="YesCounter"> 
     </asp:Series> 
    </Series> 
    <ChartAreas> 
     <asp:ChartArea Name="ChartArea1"> 
      <AxisY Title="Number of Yes"> 
      </AxisY> 
      <AxisX Title="Questions" IsLabelAutoFit="False"> 
       <LabelStyle Angle="90" Interval="1" /> 
      </AxisX> 
      <Position Height="94" Width="50" X="3" Y="3" /> 
     </asp:ChartArea> 
    </ChartAreas> 
</asp:Chart> 

et

<asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSource2" 
      Height="589px" Width="1109px"> 
    <Series> 
     <asp:Series Name="Series1" IsValueShownAsLabel="True" LabelAngle="90" 
        XValueMember="Question" YValueMembers="NoCounter"> 
     </asp:Series> 
    </Series> 
    <ChartAreas> 
     <asp:ChartArea Name="ChartArea1"> 
      <AxisY Title="Number of No"> 
      </AxisY> 
      <AxisX Title="Questions" IsLabelAutoFit="False"> 
       <LabelStyle Angle="90" Interval="1" /> 
      </AxisX> 
      <Position Height="94" Width="50" X="3" Y="3" /> 
     </asp:ChartArea> 
    </ChartAreas> 
</asp:Chart> 

Maintenant, je veux montrer un seul tableau qui contient des questions sur l'axe X et un "oui, non" compte sur l'axe Y. Comment cela peut-il être fait?

Répondre

Questions connexes