Charts - Bars
Bar charts express quantities through a bar's length, using a common baseline.
Basics
Bar charts series should contain a data
property containing an array of values.
You can customize bar ticks with the xAxis
.
This axis might have scaleType='band'
and its data
should have the same length as your series.
Press Enter to start editing
Stacking
Each bar series can get a stack
property expecting a string value.
Series with the same stack
will be stacked on top of each other.
Press Enter to start editing
Stacking strategy
You can use the stackOffset
and stackOrder
properties to define how the series will be stacked.
By default, they are stacked in the order you defined them, with positive values stacked above 0 and negative values stacked below 0.
For more information, see stacking docs.