Search code examples
.netimagegraphicsimage-processingzedgraph

Setting max and min values on the graphic in the ZedGraph library


How to set max and min values manually on the Axis scale in the ZedGraph library?


Solution

  • chart.GraphPane.YAxis.Scale.Min = 0;
    chart.GraphPane.YAxis.Scale.Max = 100;
    

    If you set Min or Max, MinAuto and MaxAuto are automatically set to false.
    Helpful: Zedgraph-Documentation (API)