是否可以强制在图表上显示包含极端数据点的日期的网格线?
Is it possible to force the display of grid lines on the chart with the dates for the extreme data points?
我已经尝试过几乎所有的配置DateTimeAxis属性: IntervalType ,间隔,最小和<$
I've tried almost every configuration of following Chart DateTimeAxis properties: IntervalType, Interval, Minimum and Maximum but I wasn't satisfied with the result.
设置属性最小 $ c>和最大没有解决问题。
Setting properties Minimum and Maximum didn't solve the problem.
=Days,Interval =4,Minimum =1/1/2010,Maximum =1/31/2010):
For instance (IntervalType="Days" , Interval="4" , Minimum="1/1/2010" , Maximum="1/31/2010"):
如果我幸运的是,我将生成一些随机数据,其中只有一个极值点将有网格线的日期。
If I'm lucky I will generate some random data where only one extreme point will have the date with grid line.
有人有一个想法如何解决上述问题?
Does somebody have an idea how to solve the problem mentioned above?
已编辑添加 我为此问题添加了赏金,因为我真的需要一个快速的解决方案。
Edited to add I added a bounty to this question since I really need a fast solution for this issue.
我将一系列特定的对绑定到我的图表,我想在x轴上毫不含糊地显示给定的DateTime值。 因为这些通常是像6/30/11,6/30/12等日期,我不能使用Interval / IntervalType属性,因为添加1年或365天到6/30/11不一定导致在6/30/12。
I am binding a series of specific pairs to my chart and I'd like to display excactly those given DateTime values on the x-axis. Since these are usually dates like 6/30/11, 6/30/12 and so on, I can't use the Interval/IntervalType properties because adding 1 year or 365 days to 6/30/11 doesn't necessarily result in 6/30/12.
因此,我需要做的是禁用DateTime轴的自动轴标签生成或使用其他轴类型。 LinearAxis doesn因为它期望double值,而CategoryAxis不是一个选项,因为它显示两个标记之间的轴标签,而不是它们之下。
So what I need to do is either disable the "automatic axis label generation" of the DateTime axis or use another axis type. LinearAxis doesn't work because it expects double values and CategoryAxis is not an option because it displays the axis labels between two tickmarks instead of underneath them.
我非常感谢任何帮助!
完全清楚,这里是我需要的轴标签(从另一个图表组件获取):
To be perfectly clear, here is what axis labels I need (taken from another chart component):
这是我到目前为止使用的Silverlight 4工具包:
This is what I get so far with the Silverlight 4 Toolkit:
€:I还在第三方广告素材中打开了线索官方Silverlight工具包支持论坛。
€: I also opened a thread in the official Silverlight Toolkit Support Forums.
推荐答案垂直线设置在指定间隔的位置。
The vertical lines are set where you specify an interval.
1/31/2010的数据没有垂直线,因为它不在一个间隔上。
There is no vertical line for the data for 1/31/2010 as it does not fall on an interval.
更多推荐
如何强制在DateTimeAxis上显示特定日期
发布评论