如何强制显示上的DateTimeAxis具体日期 [英] How to force displaying specific dates on DateTimeAxis

查看:1213
本文介绍了如何强制显示上的DateTimeAxis具体日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能与日期极端数据点给力的网格线显示在图表上?

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.

设置属性最小最高并没有解决问题。

Setting properties Minimum and Maximum didn't solve the problem.

有关实例( IntervalType =天,间隔=4,最小=1/1/2010,最大=2010/1/31):

如果我很幸运,我会产生一些随机数据,其中只有一个端点将与网格线日期。

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.

我绑定了一系列具体的对我的图表,我想显示excactly在x轴的定日期时间值。结果
时,由于这些通常日期像11年6月30日,12年6月30日等等,我不能因为添加1年365天11年6月30日并不一定会使用间隔/ IntervalType性能在12年6月30日。

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在没有按'T工作,因为它预期双重价值和类别时是不是因为它显示两个刻度线之间,而不是他们下方的轴标签的选项。

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:

€:我同时在官方开设了线程 Silverlight工具包支持论坛。

€: I also opened a thread in the official Silverlight Toolkit Support Forums.

推荐答案

在您指定的时间间隔的垂直线设置。

The vertical lines are set where you specify an interval.

有是用于2010/1/31数据没有垂直线,因为它不落在间隔

There is no vertical line for the data for 1/31/2010 as it does not fall on an interval.

这篇关于如何强制显示上的DateTimeAxis具体日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆