From ebf4729f8f11610dd9dc27f8d89bb679aa32be01 Mon Sep 17 00:00:00 2001 From: georgepauna <42321881+georgepauna@users.noreply.github.com> Date: Mon, 17 Jun 2024 08:57:34 +0300 Subject: [PATCH] Update apexcharts-card.ts --- src/apexcharts-card.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/apexcharts-card.ts b/src/apexcharts-card.ts index 58d91fc..adc1ee6 100644 --- a/src/apexcharts-card.ts +++ b/src/apexcharts-card.ts @@ -845,11 +845,7 @@ 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++)