2010-12-18 4 views
1

私はMS Chart -Pieを使用して、ページ名とそのレコードのステータスカウントを円グラフ[MS Chart]に表示しています。MSChart XValue問題

ページ名有効   無効
XXX                                 YYY          ページの                   

数が20

問題です:はxValue以上9であれば、すべてのレコードが表示され得ていないことを意味します。わずかなランダムなレコードしか表示されません。

コード:

<asp:Chart ID="chrtMaster" runat="server" Height="656px" Width="807px" BackColor="WhiteSmoke" 
         BackGradientStyle="TopBottom" BackSecondaryColor="White"> 
         <Legends> 
          <asp:Legend BackColor="WhiteSmoke" Name="Legend1"> 
          </asp:Legend> 
         </Legends> 
         <Series> 
          <asp:Series Name="Valid" Legend="Legend1" XValueMember="MasterTable" YValueMembers="Valid" 
           YValuesPerPoint="1" YValueType="Int32" CustomProperties="PointWidth=1.5" Color="220, 65, 140, 240"> 
          </asp:Series> 
          <asp:Series Name="Pending" Legend="Legend1" XValueMember="MasterTable" YValueMembers="Pending" 
           YValuesPerPoint="1" YValueType="Int32" CustomProperties="PointWidth=1.5" Color="220, 252, 180, 65"> 
          </asp:Series> 
          <asp:Series Name="Disabled" Legend="Legend1" XValueMember="MasterTable" YValueMembers="Disabled" 
           YValuesPerPoint="1" YValueType="Int32" CustomProperties="PointWidth=1.5" Color="220, 224, 64, 10"> 
          </asp:Series> 
         </Series> 
         <ChartAreas> 
          <asp:ChartArea Name="ChartArea1" BackColor="WhiteSmoke" BackSecondaryColor="White" 
           BorderColor="64, 64, 64, 64" ShadowColor="Transparent"> 
           <Area3DStyle LightStyle="Realistic" WallWidth="0" /> 
          </asp:ChartArea> 
         </ChartAreas> 
        </asp:Chart> 

答えて

1

私は答えを得ました。

chrtMaster.ChartAreas["ChartArea1"].AxisX.Interval = 1; 
関連する問題