NumYStacks Property

Use this property to return/set the number of YStacks (plots) that are displayed on the chart.

[Visual Basic]
Property NumYStacks() As Integer
[C#]
int XYChartNETCtl.NumYStacks
[C++]
__property int XYChartNet::XYChartNETCtl::NumYStacks

Remarks

Value is an integer between 1 and 10 (or NumYScales, whichever is less).

Default Value

1

Example

XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

[Visual Basic]
With XYChartNETCtl1
   .NumYScales = 5
   .NumProfiles = 5
   .YStacking = True
   .NumYStacks = 2

   .YStack(0).NumYScales = 3   'Y-Stack 0 will contain Y-Scales 0, 1 and 2
   .YStack(1).NumYScales = 2   'Y-Stack 1 will contain Y-Scales 3 and 4

   .Profile(0).YScale = 0      'Profile 0 will be displayed on Y-Stack 0
   .Profile(1).YScale = 1      'Profile 1 will be displayed on Y-Stack 0
   .Profile(2).YScale = 2      'Profile 2 will be displayed on Y-Stack 0
   .Profile(3).YScale = 3      'Profile 3 will be displayed on Y-Stack 1
   .Profile(4).YScale = 4      'Profile 4 will be displayed on Y-Stack 1
End With

[C#]
XYChartNETCtl1.NumYScales = 5;
XYChartNETCtl1.NumProfiles = 5;
XYChartNETCtl1.YStacking = true;
XYChartNETCtl1.NumYStacks = 2;

XYChartNETCtl1.get_YStack(0).NumYScales = 3;   //Y-Stack 0 will contain Y-Scales 0, 1 and 2
XYChartNETCtl1.get_YStack(1).NumYScales = 2;   //Y-Stack 1 will contain Y-Scales 3 and 4

XYChartNETCtl1.get_Profile(0).YScale = 0;      //Profile 0 will be displayed on Y-Stack 0
XYChartNETCtl1.get_Profile(1).YScale = 1;      //Profile 1 will be displayed on Y-Stack 0
XYChartNETCtl1.get_Profile(2).YScale = 2;      //Profile 2 will be displayed on Y-Stack 0
XYChartNETCtl1.get_Profile(3).YScale = 3;      //Profile 3 will be displayed on Y-Stack 1
XYChartNETCtl1.get_Profile(4).YScale = 4;      //Profile 4 will be displayed on Y-Stack 1

[C++]
XYChartNETCtl1->NumYScales = 5;
XYChartNETCtl1->NumProfiles = 5;
XYChartNETCtl1->YStacking = true;
XYChartNETCtl1->NumYStacks = 2;

XYChartNETCtl1->YStack[0]->NumYScales = 3;   //Y-Stack 0 will contain Y-Scales 0, 1 and 2
XYChartNETCtl1->YStack[1]->NumYScales = 2;   //Y-Stack 1 will contain Y-Scales 3 and 4

XYChartNETCtl1->Profile[0]->YScale = 0;      //Profile 0 will be displayed on Y-Stack 0
XYChartNETCtl1->Profile[1]->YScale = 1;      //Profile 1 will be displayed on Y-Stack 0
XYChartNETCtl1->Profile[2]->YScale = 2;      //Profile 2 will be displayed on Y-Stack 0
XYChartNETCtl1->Profile[3]->YScale = 3;      //Profile 3 will be displayed on Y-Stack 1
XYChartNETCtl1->Profile[4]->YScale = 4;      //Profile 4 will be displayed on Y-Stack 1

See Also

Properties | YStacking Feature | YStacking | YStack