wuxiao91944
wuxiao91944
采纳率0%
2018-07-05 11:08

Devexpress 14.1中chartcontrol的X轴范围问题

5

我现在把series的type设置为qualitative,我想限制X轴的显示个数,怎么设置啊,我现在用的是这样的:
((XYDiagram)chartControl1.Diagram).AxisX.WholeRange.MaxValue = 5;
((XYDiagram)chartControl1.Diagram).AxisX.WholeRange.MinValue = 1; series1.Points.Add(new SeriesPoint("12:00:00", 1));
series1.Points.Add(new SeriesPoint("13:00:00", 4));
series1.Points.Add(new SeriesPoint("14:00:00", 7));
series1.Points.Add(new SeriesPoint("15:00:00", 2));
series1.Points.Add(new SeriesPoint("16:00:00", 0));
series1.Points.Add(new SeriesPoint("17:00:00", 9));
series1.Points.Add(new SeriesPoint("18:00:00", 3));
series1.Points.Add(new SeriesPoint("19:00:00", 8));
series1.Points.Add(new SeriesPoint("20:00:00", 1));
series1.Points.Add(new SeriesPoint("21:00:00", 9));

                    但是没有效果。
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答