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

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

问题描述

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

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


解决方案

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

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天全站免登陆