YStack

 

This property is applicable only if YStacking is set to TRUE.  

Use this property to return/set values that determines the stacking characteristics for a specific y-stack.  

YStack is an array from 1 to 10 (or NumYStacks, whichever is less) and it uses the YStack Class set of properties for its characteristics.

 

Examples

Dim bGraphStacked As Boolean

XYChartCtrl.NumProfiles = 10                   'Sets the number of profiles to plot to 10
XYChartCtrl.NumYScales = 8                     'Sets the number of y-axis scales to 8

 

XYChartCtrl.YStacking = TRUE                   'Stack the graphs

XYChartCtrl.NumYStacks = 5                     'Sets the number of y-stacks to 5

bGraphStacked = XYChartCtrl.YStack(1).Visible  'Returns a boolean indicating whether or not the graph for y-stack 1 is displayed

XYChartCtrl.YStack(1).Visible = TRUE           'Display the graph
XYChartCtrl.YStack(2).Visible = TRUE           'Display the graph
XYChartCtrl.YStack(3).Visible = FALSE          'Do not display the third stacked graph
XYChartCtrl.YStack(4).Visible = TRUE           'Display the graph
XYChartCtrl.YStack(5).Visible = TRUE           'Display the graph

XYChartCtrl.YStack(1).HeightPercentage = 20    'Display graph 1 to use 20% of the overall graph height
XYChartCtrl.YStack(2).HeightPercentage = 25    'Display graph 2 to use 25% of the overall graph height
XYChartCtrl.YStack(3).HeightPercentage = 15    'Display graph 3 to use 15% of the overall graph height
XYChartCtrl.YStack(4).HeightPercentage = 30    'Display graph 4 to use 30% of the overall graph height
XYChartCtrl.YStack(5).HeightPercentage = 10    'Display graph 5 to use 10% of the overall graph height 

XYChartCtrl.YStack(1).NumYScales = 1           'Display y-scale 1 on graph 1 
XYChartCtrl.YStack(2).NumYScales = 2           'Display y-scales 2 and 3 on graph 2 
XYChartCtrl.YStack(3).NumYScales = 3           'Display y-scales 4, 5 and 6 graph 3
XYChartCtrl.YStack(4).NumYScales = 1           'Display y-scale 7 graph 4 
XYChartCtrl.YStack(5).NumYScales = 1           'Display y-scale 8 graph 5  

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

 

See Also

Properties     YStacking feature