Visual Studio 2010图表控件:使Y轴为整数值,而不是小数 [英] Visual Studio 2010 Chart control: Make Y Axis an Integer value, not decimal

查看:288
本文介绍了Visual Studio 2010图表控件:使Y轴为整数值,而不是小数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢图表控件似乎基于数据自动确定X轴范围的方式,但在这种情况下,数据只能是整数。

I like the way that the chart control seems to automatically determine the X axis range for me based on the data, but in this case, the data can only be whole numbers.

为这个轴指定整数最简单的方法是什么?

What is the easiest way to specify whole numbers for this axis?

推荐答案

    chartClicks.ChartAreas(0).AxisY.IntervalOffsetType = DateTimeIntervalType.Number

这篇关于Visual Studio 2010图表控件:使Y轴为整数值,而不是小数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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