equalBarWidth

Specifies a value indicating whether all bars in a series must have the same width, or may have different widths if any points in other series are missing.

Type: Object|Boolean
Default Value: true

If some values for a series are set to zero or not specified, bars that represent these values will be missing from the chart. To fill the empty area by extending the width of the neighboring bars, set the equalBarWidth property to false. The bars will have different widths, but there will be no empty areas.

To set a custom width for bars, as well as the spacing between bars, assign an object to this property and specify the width and spacing properties of this object.

NOTE
If the widget's container is not large enough to contain bars of the specified width along with the specified spacing between them, the spacing will be ignored.
Show Example:
jQuery

In this example, the series type of the chart displayed in the background is 'bar'. In the data source, the "11", "13", "17" and "18" points have one of the series values missing. The bars representing these points will not be displayed. You can specify whether to fill the empty area by extending the neighboring bars, using the equalBarWidth option. Toggle the check box to switch between the values of this option.


                                    

                                    

spacing

Specifies the spacing between bars in pixels.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the spacing option is set to 2.


                                    

                                    

width

Specifies an equal bar width in pixels.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the width option is set to 6.