Page 1 of 1

Align Graph Axis - Please help

Posted: Mon Feb 08, 2016 2:07 pm
by russr999
Hi All,

I'm having a problem :roll:
I have a graph with 2 Y axis. I have monthly values on the Left Y Axis and the cumulative values on the Right Y Axis.
I cannot get both axis to align. Screenshot attached.
What I need to do is to have both axis aligned at zero....
Can somebody please help....how can I do this.
The problem happens when I have a negative on the left Y Axis.
2016-02-08_21-59-23.jpg
2016-02-08_21-59-23.jpg (88.48 KiB) Viewed 880 times

Re: Align Graph Axis - Please help

Posted: Tue Feb 09, 2016 6:37 am
by HighAley
Hello.

The only way is to set Ranges for both Y axis manually.
Also you could do it in Before print manual of the chart.

Code: Select all

((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 = minValue;
((Stimulsoft.Report.Chart.StiAxis )(((Stimulsoft.Report.Chart.StiAxisArea)(Chart1.Area)).YAxis)).Range.Maximum = maxValue;
Thank you.