How do I force a chart to auto adjust Y Axis Maximum?

前端 未结 4 850
梦谈多话
梦谈多话 2021-01-07 17:52

I have a .NET chart which I am populating at runtime

The chart appears within a report. For each band in my report, I clear all the series and add them back in usin

4条回答
  •  一个人的身影
    2021-01-07 18:32

    First, initialize this:

    chart.ChartAreas[0].AxisY.IsStartedFromZero = false;
    

    Whenever data point is added, do this please.

    pinChart.ChartAreas[0].RecalculateAxesScale();
    

提交回复
热议问题