Wijmo UI for the Web
is100Percent Field

Default value: false

Sets a value that determines whether to present stacked bars as a total value of 100 percent, illustrating how each value contributes to the total.

Syntax
Javascript (Usage) 
var value; // Type: boolean
value = jQuery.wijmo.wijbarchart.options.is100Percent;
Javascript (Specification) 
var is100Percent : boolean;
Example
// This code results in bars with data for three countries stacked to fill 100% of the chart area, with each
// series in a different color representing its percentage of the total.
$("#wijbarchart").wijbarchart({
    stacked: true,
    is100Percent: true,
    seriesList: [{
        label: "US",
        legendEntry: true,
        data: { x: ['PS3', 'XBOX360', 'Wii'], y: [12.35, 21.50, 30.56] }
    }, {
        label: "Japan",
        legendEntry: true,
        data: { x: ['PS3', 'XBOX360', 'Wii'], y: [4.58, 1.23, 9.67] }
    }, {
        label: "Other",
        legendEntry: true,
        data: { x: ['PS3', 'XBOX360', 'Wii'], y: [31.59, 37.14, 65.32] }
    }],
});
Remarks
See Clustering Data for more information on the concept of using the same X values with multiple Y series. Note: This value has no effect if you do not set the stacked option to true.
Browser Compatibility
7
5
5

See Also

Reference

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.