Align Graph Axis - Please help

Stimulsoft Reports.NET discussion
Post Reply
russr999
Posts: 15
Joined: Wed Feb 25, 2015 9:13 pm

Align Graph Axis - Please help

Post 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 878 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Align Graph Axis - Please help

Post 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.
Post Reply