Nevron .NET Vision
Nevron.Chart Namespace / NSeriesBase 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 Overridable Sub DisplayOnAxis( _
       ByVal axisId As System.Integer, _
       ByVal display As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As NSeriesBase
    Dim axisId As System.Integer
    Dim display As System.Boolean
     
    instance.DisplayOnAxis(axisId, display)
    public virtual void DisplayOnAxis( 
       System.int axisId,
       System.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
    You can obtain the id of a particular axis with the help of the AxisId property of the NAxis 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 NAxis =  Chart.Axes.AddCustomAxis(AxisOrientation.Vertical,AxisPredefinedPositon.FrontLeft) 
    bar.DisplayOnAxis(customAxis.AxisId, True)
    bar.DisplayOnAxis(Chart.Axis(StandardAxis.PrimaryY).AxisId, False)
    NAxis 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