Wijmo UI for the Web
clusterWidth Option
wijmo.chart.wijbarchart Namespace > options type : clusterWidth Option

Sets the percentage of each cluster's allocated plot area that the bars in each cluster occupy.

Type: Number

Default value: 85

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijbarchart("option", "clusterWidth");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijbarchart("option", "clusterWidth", newValue);
        
});
var clusterWidth : number;
Example
<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#wijbarchart").wijbarchart({
            clusterWidth: 50,
            data: {x: ['Ford', 'GM', 'Chrysler', 'Toyota', 'Nissan', 'Honda']},
            seriesList: [{
                label: "2012 Auto Sales",
                legendEntry: true,
                data: { y: [.05, .04, .21, .27, .1, .24] }
            },
           {
                label: "2011 Auto Sales",
                legendEntry: true,
                data: { y: [.17, .19, .12, -.06, .17, -.07] }
            }],
        });
    });
</script>
Remarks

By default, the bars occupy 85% of the cluster's plot area, leaving a small gap between clusters. A setting of 100% removes the gap, or you can make the gap more dramatic with a setting of 50%. This setting may affect your clusterSpacing option setting.

See Also

Reference

options type
wijbarchart Method

Concepts

Clustering Data