Follow

Setting the Range for a chart in the Before Print event (C#)

You could set the necessary range of any axis with next code:

C#
((Stimulsoft.Report.Chart.StiAxis )(((Stimulsoft.Report.Chart.StiAxisArea)(Chart1.Area)).YAxis)).Range.Auto = false;
((Stimulsoft.Report.Chart.StiAxis )(((Stimulsoft.Report.Chart.StiAxisArea)(Chart1.Area)).YAxis)).Range.Minimum = 0;
((Stimulsoft.Report.Chart.StiAxis )(((Stimulsoft.Report.Chart.StiAxisArea)(Chart1.Area)).YAxis)).Range.Maximum = 4;

0 Comments

Please sign in to leave a comment.
Powered by Zendesk