首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MSChart XValue问题

MSChart XValue问题
EN

Stack Overflow用户
提问于 2010-12-18 18:13:17
回答 1查看 833关注 0票数 1

我正在使用MS Chart -Pie在饼图MS Chart中显示页面名称及其记录状态计数。

页面名称有效或无效

*30*

yyy :日本,韩国,日本,韩国,日本,日本,韩国,韩国,日本,韩国,韩国,中国,中国,日本,韩国,日本,韩国,中国

页数为20。

问题:如果XValue大于9,则表示不会显示所有记录。仅显示少量随机记录。

代码:

代码语言:javascript
复制
   <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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-12-18 20:07:51

我知道答案了。

代码语言:javascript
复制
chrtMaster.ChartAreas["ChartArea1"].AxisX.Interval = 1;
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4477618

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档