YStacking Property

This property is only applicable if the number of y-axis scales is greater than one.   Recall that up to 10 y-axis scales can be defined and configured (see NumYScales and YAxis).

Use this property to return/set a boolean that determines whether or not the graphs are stacked vertically.  If YStacking is TRUE, one graph is displayed per y-stack configured (see NumYStacks and YStack).  The graphs are stacked based on the YStack index, with stack 0 on top and then stack 1, stack 2, and so on.

[Visual Basic]
Property YStacking() As Boolean
[C#]
bool XYChartNETCtl.YStacking
[C++]
__property bool XYChartNet::XYChartNETCtl::YStacking

Default Value

False

Examples

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

[Visual Basic]
XYChartNETCtl1.YStacking = True   'Stack the graphs

XYChartNETCtl1.YStacking = False  'Do not stack the graphs

XYChartNETCtl1.Refresh            'Refresh required to update chart with changes made

[C#]
XYChartNETCtl1.YStacking = false;  //Do not stack the graphs

XYChartNETCtl1.Refresh();          //Refresh required to update chart with changes made

[C++]
XYChartNETCtl1->YStacking = true;  //Stack the graphs

XYChartNETCtl1->Refresh();         //Refresh required to update chart with changes made

See Also

Properties | YStacking Feature