Xceed Chart for WinForms v4.4 Documentation
DisplayOnAxis(Int32,Boolean) Method
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > SeriesBase Class > DisplayOnAxis Method : DisplayOnAxis(Int32,Boolean) Method
specifies the id of the targeted axis (standard or custom)
if true the series is scaled on the specified axis

if false the series is not scaled on the specified axis

Instruct the chart whether to scale the series on the specified axis.
Syntax
'Declaration
 
Public Overloads Overridable Sub DisplayOnAxis( _

   ByVal axisId As Integer, _

   ByVal display As Boolean _

) 
'Usage
 
Dim instance As SeriesBase

Dim axisId As Integer

Dim display As Boolean

 

instance.DisplayOnAxis(axisId, display)
public virtual void DisplayOnAxis( 

   int axisId,

   bool display

)

Parameters

axisId
specifies the id of the targeted axis (standard or custom)
display
if true the series is scaled on the specified axis

if false the series is not scaled on the specified axis

Remarks
The user can obtain the id of a particular axis with the help of the AxisId property of the Axis class.
Example
The following code creates a custom vertical axis and scales a bar series on it. It also removes the bar series from scaling on the PrimaryY axis.
Dim customAxis As Axis =  Chart.Axes.AddCustomAxis(AxisOrientation.Vertical,AxisPredefinedPositon.FrontLeft) 

bar.DisplayOnAxis(customAxis.AxisId, True)

bar.DisplayOnAxis(Chart.Axis(StandardAxis.PrimaryY).AxisId, False)
Axis customAxis = Chart.Axes.AddCustomAxis(AxisOrientation.Vertical, AxisPredefinedPositon.FrontLeft);

bar.DisplayOnAxis(customAxis.AxisId, true);

bar.DisplayOnAxis(Chart.Axis(StandardAxis.PrimaryY).AxisId, false);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SeriesBase Class
SeriesBase Members
Overload List