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


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

if false the series is not scaled on the specified axis

Instructs the chart whether to scale the series on one of the standard chart axes.
Syntax
'Declaration
 
Public Overloads Overridable Sub DisplayOnAxis( _
   ByVal axis As StandardAxis, _
   ByVal display As Boolean _
) 
'Usage
 
Dim instance As SeriesBase
Dim axis As StandardAxis
Dim display As Boolean
 
instance.DisplayOnAxis(axis, display)
public virtual void DisplayOnAxis( 
   StandardAxis axis,
   bool display
)

Parameters

axis
specifies the targeted standard axis
display
if true the series is scaled on the specified axis

if false the series is not scaled on the specified axis

Remarks
By default all series are scaled on the PrimaryX and PrimaryY axes and always on the Depth axis.
Example
The following code scales a bar series on the SecondaryY axis and removes it from the PrimaryY axis.
bar.DisplayOnAxis(StandardAxis.SecondaryY, True)
bar.DisplayOnAxis(StandardAxis.PrimaryY, False)
bar.DisplayOnAxis(StandardAxis.SecondaryY, true);
bar.DisplayOnAxis(StandardAxis.PrimaryY, 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