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?
Looks like you can do this by setting the YValueType
property on any relevant series to an integer type - for example:
Chart.Series[0].YValueType = ChartValueType.Int32;
chartClicks.ChartAreas(0).AxisY.IntervalOffsetType = DateTimeIntervalType.Number
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With