Click here to Skip to main content
15,890,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried using the code below

C#
  //set interval of y axis to 0.5

chart1.ChartAreas["ChartArea1"].AxisY.LabelStyle.Interval = 0.5;

//how do i set the starting value to be 80....and the max value to be 90
Posted

1 solution

Here is the msdn info for the Chart Axis Axis[^]

Then set
C#
chart1.ChartAreas["ChartArea1"].AxisY.Minimum = 80;
chart1.ChartAreas["ChartArea1"].AxisY.Maximum = 90;


This can also be done right from the properties window -> ChartAreas->Axes->Y (Value) Axis->Minimum / Maximum

There are sooo many other properties that can be manipulated too.

And technically the IsStartedFromZero does not have to be false for this to work..
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900