XY Chart NET 3 Control Reference > Properties > NumYScales Property |
Use this property to return/set a value that determines the number of Y-axis scales that can be displayed on the chart.
[Visual Basic] Property NumYScales() As Integer |
[C#] int XYChartNETCtl.NumYScales |
[C++] property int XYChartNet::XYChartNETCtl::NumYScales |
Value is an integer between 1 and 100 (or NumProfiles, whichever is less). A Profile can be plotted against a specific Y-axis scale via the Profile property.
For Lite versions, the upper bound is 2. |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Dim iValue As Integer iValue = XYChartNETCtl1.NumYScales 'Returns the number of y-axis scales XYChartNETCtl1.NumProfiles = 8 'Sets the number of profiles to plot to 8 XYChartNETCtl1.NumYScales = 4 'Sets the number of y-axis scales to 4 XYChartNETCtl1.Profile(0).YScale = 0 'Assign Profile 0 to use Y-scale 0 XYChartNETCtl1.Profile(1).YScale = 1 'Assign Profile 1 to use Y-scale 1 XYChartNETCtl1.Profile(2).YScale = 2 'Assign Profile 2 to use Y-scale 2 XYChartNETCtl1.Profile(3).YScale = 3 'Assign Profile 3 to use Y-scale 3 XYChartNETCtl1.Profile(4).YScale = 0 'Assign Profile 4 to use Y-scale 0 XYChartNETCtl1.Profile(5).YScale = 1 'Assign Profile 5 to use Y-scale 1 XYChartNETCtl1.Profile(6).YScale = 2 'Assign Profile 6 to use Y-scale 2 XYChartNETCtl1.Profile(7).YScale = 3 'Assign Profile 7 to use Y-scale 3 XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made