Asp.Net图表控件 - X轴截断值 [英] Asp.Net Chart Control - Truncated Values on X Axis

查看:159
本文介绍了Asp.Net图表控件 - X轴截断值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

男人我真的卡住。我一直在试图通过这个来得到什么不到一个星期。

Man I'm really stuck. I've been trying to get through this for nothing less than a week.

我密谋水平条形图,一个简单的(Y)VS小时(X)的魅力。率。
小时数是固定的,我必须始终从0h展示给23小时,以maintan它的可读性。

I'm plotting a horizontal bar chart, a simple (Y) Hours vs (X) Avg. Rate. The number of hours is fixed, I must always show from 0h to 23h, in order to maintan its readability.

这样做的不好之处是当我有一栏上绘制0H,它就会被截断其定位(右侧留出X轴),像下面的图片。

The bad part of this is that whenever I have a bar plotted on 0h, it gets truncated for its positioning (right aside of X axis), like the image below.

我得到了一些建议了,但我不能把它做:

I got some suggestions already, but I couldn't get it done:

1 - 从当天的23小时之前,启动小时。所以,我可以隐藏第一个和最后的值,(从今日)的实际0H会高一点。但我在使用最小和最大性能困难时期实现这一目标。

1 - Start hour from 23h of the day before. So that I could hide the first and last values, and the actual 0h (from "today") will be a little higher. But I'm having hard times with minimum and maximum properties to achieve this.

2 - 绘出0H高一点(哇,天才!)。不过,我会怎么做呢?

2 - Plot the 0h a little higher (wow, genius!). But how would I do this?

任何帮助吗?
先谢谢了。

Any help? Thanks in advance.

诗:好吧,SOF不能让我的第一个职位上传图片,所以这里是链接:的 http://i.stack.imgur.com/A6Bh2.png

Ps: Ok, SOF couldn't let upload images on my very first post, so here is the link: http://i.stack.imgur.com/A6Bh2.png

推荐答案

这是我做的,当我有类似的问题。

This is what I did when I had a similar problem

YAxis.Minimum = YourStartDate.AddSeconds(-1).ToOADate();

这篇关于Asp.Net图表控件 - X轴截断值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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