Y轴10,而不是0的MSChart使用Windows应用程序启动 [英] y axis start from 10 rather than 0 in mschart using windows application

查看:249
本文介绍了Y轴10,而不是0的MSChart使用Windows应用程序启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想从10,而不是0开始酒吧是可能,如何?

HI i want to start bar from 10 rather than 0. is it possible and how?

chart1.ChartArea["ChartArea1"].AxisY.IsStartedfromZero=false

chart1.ChartArea["ChartArea1"].AxisY.minimum=10 //but this line replace 0

另一个命令吧,从10毫秒表开始。

another command to bar start from 10 in ms chart.

推荐答案

你可能使用了错误的图表类型,你的代码确实是基线从零点漂移,而是从 10

you are probably using the the wrong ChartType, what your code does is shift the baseline from Zero and instead start from 10

我想你真正想要的是一个范围条形图,其中你将有每杆2的值。代表低值和高值,这将有助于在代表酒吧中途

I presume what you really want is a Range Bar chart wherein you will have 2 values per bar representing the low and high values which would help in representing the bar midway.

喜欢的东西的产品低 - 10高25 的现在这个应该显示从10延伸到25.在这时尚的酒吧,您可以为其他的点。

Something like Product A low - 10 High 25 now this should show you a bar extending from 10 to 25. In this fashion you can set up for the other points.

修改
现在的多一点明确的(来自链接)这一点,你将不得不使用

EDIT Now its a bit more clear (from the link) for this you will have to use

Chart1.ChartAreas[0].AxisY.Crossing = 10;

和删除 AxisY.Minimum ,你应该没事。

这篇关于Y轴10,而不是0的MSChart使用Windows应用程序启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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