Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / PolarSeries 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

Example


In This Topic
    DisplayOnAxis(Int32,Boolean) Method
    In This Topic
    Instruct the chart whether to scale the series on the specified axis.
    Syntax
    'Declaration
     
    Public Overloads Overrides Sub DisplayOnAxis( _
       ByVal axisId As Integer, _
       ByVal display As Boolean _
    ) 
    'Usage
     
    Dim instance As PolarSeries
    Dim axisId As Integer
    Dim display As Boolean
     
    instance.DisplayOnAxis(axisId, display)
    public override 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 current implementation only throws an exception, since the polar series is always and only displayed on the one and only polar axis.
    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