diff --git a/src/apexcharts-card.ts b/src/apexcharts-card.ts index 9952b45..58d91fc 100644 --- a/src/apexcharts-card.ts +++ b/src/apexcharts-card.ts @@ -845,6 +845,11 @@ class ChartsCard extends LitElement { if (this._config?.series[index].show.in_brush) brushData.series.push(result); return; }); + if (this._config.stacked) + for (let i = 0; i < graphData.series.length-1; i++) + for (let j = 0; j < graphData.series[i].data.length; j++) + graphData.series[i].data[j][0] = graphData.series[graphData.series.length-1].data[j][0]; + if (this._config.stacked_last_is_total) for (let i = 0; i < graphData.series.length-1; i++) for (let j = 0; j < graphData.series[i].data.length; j++)