We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cff8218 commit e5840fbCopy full SHA for e5840fb
src/apexcharts-card.ts
@@ -595,7 +595,11 @@ class ChartsCard extends LitElement {
595
if (!this._config?.series[index].show.in_chart && !this._config?.series[index].show.in_brush) {
596
return;
597
}
598
- if (graph.history.length === 0) return [{ data: [] }];
+ if (graph.history.length === 0) {
599
+ if (this._config?.series[index].show.in_chart) graphData.series.push({ data: [] });
600
+ if (this._config?.series[index].show.in_brush) brushData.series.push({ data: [] });
601
+ return;
602
+ }
603
let data: EntityCachePoints = [];
604
if (this._config?.series[index].extend_to_end && this._config?.series[index].type !== 'column') {
605
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
0 commit comments