Ivan
Ivan

Reputation: 64207

How to change Microsoft Chart Control minimum and maximum values?

All my values lie between 1.5 and 1.6 but the Chart Control draws the chart to fit values from 0 to 2. As the result the chart looks pretty ugly and hardly readable:

enter image description here

How to make it to display more adequately? I haven't managed to find any properties responsible for setting the domain. Would be cool if I could configure the control to figure out the minimum and the maximum automatically but setting them manually would be better than nothing.

Upvotes: 1

Views: 384

Answers (1)

V4Vendetta
V4Vendetta

Reputation: 38200

You can try by setting the following properties of the ChartAreas

Chart1.ChartAreas[0].AxisY.Minimum = 1.5;
Chart1.ChartAreas[0].AxisY.Maximum = 1.6;

Upvotes: 1

Related Questions