79539291

Date: 2025-03-27 15:18:47
Score: 1
Natty:
Report link

The solution were to change the YValueType for the Series myChart1.Series[1].YValueType = ChartValueType.Int32; to myChart1.Series[1].YValueType = ChartValueType.Double;.

Now both minimum and maximum YValues on the chart, corresponds to the values set in the code.

myChart1.ChartAreas[0].AxisY.Minimum = 9.3;
myChart1.ChartAreas[0].AxisY.Maximum = 10.3;
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Henrik Melgaard