简体   繁体   English

MSChart X轴日期

[英]MSChart X-Axis Dates

I am plotting a simple line graph like the following: 我正在绘制一个简单的折线图,如下所示:

在此处输入图片说明

Recently a Customer had the requirement to change the interval on the graph so that each data point was right next to each other, and no dates are between them. 最近,客户要求更改图表上的间隔,以使每个数据点彼此相邻,并且它们之间没有日期。

For example, the graph below would have 6 x-values and they would all be evenly spaced, and have the same dates 3-8-12, 3-24-12,4-4-12,4-13-12,4-15-12,4-17-12. 例如,下图将有6个x值,并且它们都将均匀分布,并且具有相同的日期3-8-12、3-24-12、4-4-12、4-13-12,4 -15-12,4-17-12。 We don't care about the dates in-between. 我们不在乎中间的日期。

How can I do this in MSChart? 如何在MSChart中做到这一点?

Try setting the Series.IsXValueIndexed = true; 尝试设置Series.IsXValueIndexed = true;

http://support2.dundas.com/Default.aspx?article=909 http://support2.dundas.com/Default.aspx?article=909

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM