Skip to content

Bars Width

This option applies only to Bars charts. It allows to change the width of the bars within a bar chart. The value can be an integer or a string representing a percentage value.

1
2
myChart.set('barWidth', 10)
myChart.set('barWidth', '70%')

The example below shows a bar chart with barWidth equal to 10.

Bars

The example below shows Clustered Bars with barWidth equal to '5%'.

Clustered

The example below shows Stacked Bars with barWidth equal to '70%'.

Stacked