XY Chart NET 3 Control Reference
YStacking Property

This property is only applicable if the number of y-axis scales is greater than one.   Recall that up to 100 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.

Syntax
[Visual Basic]
Property YStacking() As Boolean
[C#]
bool XYChartNETCtl.YStacking
[C++]
property bool XYChartNet::XYChartNETCtl::YStacking
       
Default Value
False
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.


XYChartNETCtl1.YStacking = True   'Stack the graphs

XYChartNETCtl1.YStacking = False  'Do not stack the graphs

XYChartNETCtl1.Refresh            'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.


XYChartNETCtl1.YStacking = false;  //Do not stack the graphs

XYChartNETCtl1.Refresh();          //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.


XYChartNETCtl1->YStacking = true;  //Stack the graphs

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

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.