bar
Configuration Structure
bar: {}horizontal
falseTransforms column charts into horizontal bar charts.
borderRadius
0Creates rounded corners on bars/columns. Available since v3.26.0.
borderRadiusApplication
'around'Specifies whether to apply rounding around both ends or only to a single end.
borderRadiusWhenStacked
'last'Controls whether rounding applies to all bars or exclusively the final rendered dataset. Options: all, last.
columnWidth
'70%'Percentage of available grid width occupied by columns. Range: 0% to 100%.
barHeight
'70%'Percentage of available grid height for horizontal bars. Range: 0% to 100%.
distributed
falseEnables discrete bar mode where each value represents one bar per series.
rangeBarOverlap
trueIn timeline charts, enables bars to overlap instead of stacking.
rangeBarGroupRows
falseIn multi-series timeline charts, groups horizontal rows together rather than stacking them vertically.
hideZeroBarsWhenGrouped
falsePrevents zero-value bars from occupying space in non-stacked grouped configurations.
isDumbbell
falseAdds dots at starting and ending points of range bars.
dumbbellColors
undefinedCustom color options for dumbbell endpoint dots.
isFunnel
falseActivates funnel chart mode.
isFunnel3d
trueApplies 3D shadow effects to funnel chart bars.
ranges
Defines color mappings for specific value ranges.
colors: {
ranges: [{
from: 0,
to: 10,
color: '#FF0000'
}]
}
backgroundBarColors
Custom background colors for bar rectangles.
backgroundBarOpacity
Transparency level for background bar colors.
backgroundBarRadius
Border radius for background bar rectangles.
position
Label placement options: top, center, or bottom.
maxItems
Maximum displayable data-labels on the chart.
hideOverflowingLabels
Hides overlapping labels in stacked charts.
orientation
Label orientation: horizontal or vertical.
enabled
Displays cumulative values in stacked configurations.
formatter
Custom formatting for total values.
dataLabels: {
total: {
formatter: function (val, opts) {
return opts.w.globals.seriesTotals[opts.dataPointIndex]
}
}
}
offsetX
Left positioning adjustment for total label.
offsetY
Vertical positioning adjustment for total label.
color
ForeColor of total label. Default: #373d3f.
fontSize
FontSize for total label. Default: 12px.
fontFamily
FontFamily for total label.
fontWeight
Font-weight for total label. Default: 600.