Profile Picture

DisplayOnAxis problem

Posted By Lou Laskey 14 Years Ago
Author
Message
Lou Laskey
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 24, Visits: 2
That took care of it.

Thanks,
Lou

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Lou,

By default all series will scale on the PrimaryY axis - the following code shows how to tell a series to scale on the secondary Y axis only:

someSeries.DisplayOnAxis((int)StandardAxis.PrimaryY, false);
someSeries.DisplayOnAxis((int)StandardAxis.SecondaryY, true);

in other words you also have to disable the series from scaling on the primary Y.



Best Regards,
Nevron Support Team



Lou Laskey
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 24, Visits: 2
I am using a Horizontal bar type (PredefinedChartStyle.HorizontalLeft).

There are 3 series: 1 bar and 2 lines

There are 3 axes (1 X and 2 Y).

The bar series and 1 of the line series (a threshold display) uses DisplayOnAxis(StandardAxis.PrimaryY, true) and they are ok.

My second line series uses DisplayOnAxis(StandardAxis.SecondaryY, true) and that is where the problem occurs. The series scales to the primary Y axis.

I put a chart command bar on the form so I could see the settings at run time. When I look at the Axes tab for the line series in question, the Y Axes is set to Both. If I change it to SecondaryY, it works as planned.

Any help would be appreciated.
TIA
Lou





Similar Topics


Reading This Topic