series.stack.groupString
Indicates that the series should be stacked in a group with the specified name.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: "2013/01/01", value1: 40, value2: 60, value3: 30 },
{ date: "2013/01/02", value1: 42, value2: 58, value3: 32 }
]
},
series: [{
type: "column",
field: "value1",
stack: {
group: "groupA"
}
}, {
type: "column",
field: "value2",
stack: {
group: "groupA"
}
}, {
type: "column",
field: "value3",
stack: {
group: "groupB"
}
}],
categoryAxis: {
field: "date"
}
});
</script>
The
groupoption is supported when series.type is set to "bar" or "column".
In this article