DisplayOnAxis problem


Author
Message
Lou Laskey
Lou Laskey
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
Posts: 24, Visits: 2
That took care of it.

Thanks,
Lou
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
Lou Laskey
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
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search