ChadD ChadD - 1 year ago 169
ASP.NET (C#) Question

Visual Studio 2010 Chart control: Make Y Axis an Integer value, not decimal

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?

alt text

Answer Source
    chartClicks.ChartAreas(0).AxisY.IntervalOffsetType = DateTimeIntervalType.Number
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download