seriesDefaults.stack.typeString(default: "normal")

The type of stack to plot. The following types are supported:

  • "normal" - the value of the stack is the sum of all points in the category (or group)
  • "100%" - the value of the stack is always 100% (1.00). Points within the category (or group) are represented as percentages.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    seriesDefaults: {
        stack: {
            type: "100%"
        }
    },
    series: [{
        type: "column",
        data: [
            { date: new Date(2023, 0, 1), value: 10 },
            { date: new Date(2023, 0, 2), value: 20 },
            { date: new Date(2023, 0, 3), value: 15 }
        ],
    }, {
        type: "column", 
        data: [
            { date: new Date(2023, 0, 5), value: 30 },
            { date: new Date(2023, 0, 6), value: 20 },
            { date: new Date(2023, 0, 7), value: 45 }
        ],
    }]
});
</script>
In this article
seriesDefaults.stack.type
Not finding the help you need?
Contact Support