jQuery.wijmo.wijbarchart Namespace > options type : stacked Field |
Default value: false
Sets a value that determines whether to stack bars in the chart to show how each value in a series contributes to the total.
Javascript (Usage) | |
---|---|
var value; // Type: boolean value = jQuery.wijmo.wijbarchart.options.stacked; |
Javascript (Specification) | |
---|---|
var stacked : boolean; |
// set the chart to stacked bar chart. $("#wijbarchart").wijbarchart({ stacked: true, seriesList: [{ label: "US", data: { x: ['PS3', 'XBOX360', 'Wii'], y: [12.35, 21.50, 30.56] } }, { label: "Japan", data: { x: ['PS3', 'XBOX360', 'Wii'], y: [4.58, 1.23, 9.67] } }, { label: "Other", data: { x: ['PS3', 'XBOX360', 'Wii'], y: [31.59, 37.14, 65.32] } }] });