XY Chart NET 3 Control Reference > Properties > NumXScales Property |
Use this property to return/set a value that determines the number of X-axis scales that can be displayed on the chart.
[Visual Basic] Property NumXScales() As Integer |
[C#] int XYChartNETCtl.NumXScales |
[C++] property int XYChartNet::XYChartNETCtl::NumXScales |
Value is an integer between 1 and 100 (or NumProfiles, whichever is less). A Profile can be plotted against a specific X-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.NumXScales 'Returns the number of x-axis scales XYChartNETCtl1.NumProfiles = 10 'Sets the number of profiles to plot to 10 XYChartNETCtl1.NumXScales = 2 'Sets the number of x-axis scales to 2 XYChartNETCtl1.Profile(0).XScale = 0 'Assign Profile 0 to use X-scale 0 XYChartNETCtl1.Profile(1).XScale = 1 'Assign Profile 1 to use X-scale 1 XYChartNETCtl1.Profile(2).XScale = 1 'Assign Profile 2 to use X-scale 1 XYChartNETCtl1.Profile(3).XScale = 1 'Assign Profile 3 to use X-scale 1 XYChartNETCtl1.Profile(4).XScale = 1 'Assign Profile 4 to use X-scale 1 XYChartNETCtl1.Profile(5).XScale = 1 'Assign Profile 5 to use X-scale 1 XYChartNETCtl1.Profile(6).XScale = 1 'Assign Profile 6 to use X-scale 1 XYChartNETCtl1.Profile(7).XScale = 1 'Assign Profile 7 to use X-scale 1 XYChartNETCtl1.Profile(8).XScale = 0 'Assign Profile 8 to use X-scale 0 XYChartNETCtl1.Profile(9).XScale = 0 'Assign Profile 9 to use X-scale 0 XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made