@@ -36,8 +36,8 @@ $OutputFolderPath = Resolve-Path $Path
3636 Define the data to be displayed in the chart.
3737
3838 For a Stacked Bar Chart:
39- - $Values is an array of double arrays. Each inner array contains the values for one category
40- (stack segment) across all bars .
39+ - $Values is an array of double arrays. Each inner array contains the values for all categories
40+ (stack segments) for a single bar .
4141 - $Labels contains the label for each bar (X-axis entries).
4242 - $LegendCategories contains the label for each series (stack segments shown in the legend).
4343
@@ -48,7 +48,8 @@ $ChartTitle = 'Network Adapter Traffic (Mbps)'
4848$Labels = @ (' vmnic0' , ' vmnic1' , ' vmnic2' , ' vmnic3' )
4949$LegendCategories = @ (' Inbound' , ' Outbound' , ' Dropped' )
5050
51- # Values are organized by category (stack segment), so each inner array corresponds to one category across all bars.
51+ # Values are organized by bar (network adapter), so each inner array corresponds to one adapter and
52+ # contains the values for each traffic type (stack segment) in the order of $LegendCategories.
5253# Example values for Inbound, Outbound, and Dropped traffic for each network adapter:
5354# - vmnic0: 450 Mbps Inbound, 320 Mbps Outbound, 280 Mbps Dropped
5455$vmnic0 = [double []]@ (450 , 320 , 280 )
0 commit comments