This demo illustrates how to use the barPadding property to customize bar width.
In this demo, the data source array consists of objects with the same field structure. Assign the
state field to the argumentField property of the commonSeriesSettings object to specify the common argument for the series. Then, define the series array of objects. In each object, specify the valueField property.
To configure settings for all series in the chart, use the commonSeriesSettings object. Specify the barPadding property to control the padding and the width of all bars in a series.
Use the verticalAlignment and horizontalAlignment properties of the legend object to specify the legend layout.
To allow users to export your bar chart into a PNG, JPEG, PDF, or SVG file, or print the chart, set the export.enabled property to true. Since the export functionality is enabled in this demo, you can click the hamburger button in the chart to invoke a drop-down menu with export and print commands.