Chart / Charts / Axes / Scales / Scale Types / Linear Scale
In This Topic

    Linear Scale

    In This Topic

    A linear scale is a type of scale where equal distances on the scale represent equal differences in the quantity being plotted. The linear scale is commonly used in charting types where you have to display numeric values with similar magnitude. The following chart shows a linear scale applied on the Y axis:

     Creating a Linear Scale
           

    You create a linear scale by creating an instance of the NLinearScale class. The following code shows how to create a linear numeric scale and assign it to the primary Y axis of a Cartesian chart:

    C#
    Copy Code

    NCartesianChart chart = (NCartesianChart)chartView.Surface.Charts[0];
    NLinearScale linearScale = new NLinearScale();

    chart.Axes[ENCartesianAxis.PrimaryY].Scale = linearScale;