User Tools

Site Tools

blog:2022-10-18_chart_y-axis_shown_range



2022-10-18 Chart Y-Axis Shown Range

  • We need to set the shown range for the Y-Axis in the C# chart.

Solution

  • Use the code as follows the set the second Y axis from 52.8 to 54.8.
    • chart1.ChartAreas[0].AxisY2.Maximum = 54.8;
      chart1.ChartAreas[0].AxisY2.Minimum = 52.8;
  • Use the code as follows the set the second Y axis from 50 to 60.
    • chart1.ChartAreas[0].AxisY2.Maximum = 60;
      chart1.ChartAreas[0].AxisY2.Minimum = 50;

TAGS

  • 106 person(s) visited this page until now.

Permalink blog/2022-10-18_chart_y-axis_shown_range.txt · Last modified: 2022/10/18 22:48 by jethro

oeffentlich