You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -173,6 +174,7 @@ The card stricly validates all the options available (but not for the `apex_conf
173
174
| `in_header` | boolean | `true` | v1.4.0 | If `show_states` is enabled, this would show/hide this specific serie in the header |
174
175
| `in_chart` | boolean | `true` | v1.4.0 | If `false`, hides the serie from the chart |
175
176
| `datalabels` | boolean | `false` | v1.5.0 | If `true` will show the value of each point for this serie directly in the chart. Don't use it if you have a lot of points displayed, it will be a mess |
@@ -442,6 +444,7 @@ For code junkies, you'll find the default options I use in [`src/apex-layouts.ts
442
444
| ---- | :--: | :-----: | :---: | ----------- |
443
445
| `color_threshold` | boolean | `false` | NEXT_VERSION | Will enable the color threshold feature. See [color_threshold](#color_threshold-experimental-feature) |
444
446
| `disable_config_validation` | boolean | `false` | NEXT_VERSION | If `true`, will disable the config validation. Useful if you have cards adding parameters to this one. Use at your own risk. |
447
+
| `hidden_by_default` | boolean | `false` | NEXT_VERSION | Will allow you to use the `hidden_by_default` option. See [hidden_by_default](#hidden_by_default-experimental-feature) |
445
448
446
449
### `color_threshold` experimental feature
447
450
@@ -490,6 +493,24 @@ series:
490
493
491
494

492
495
496
+
### `hidden_by_default` experimental feature
497
+
498
+
Enabling this experimental feature might/will break the auto-scaling and auto-column width feature. Don't open an issue for that. It only works if all the series have a unique name.
499
+
500
+
This option is useful if you want to hide a serie from the chart by default when it's loaded as if you had clicked on the legend to disable this serie.
501
+
502
+
This is how to use it:
503
+
```yaml
504
+
type: custom:apexcharts-card
505
+
experimental:
506
+
hidden_by_default: true
507
+
series:
508
+
- entity: sensor.temperature
509
+
show:
510
+
hidden_by_default: true
511
+
- entity: sensor.temperature_office
512
+
```
513
+
493
514
## Known issues
494
515
495
516
* Sometimes, if `smoothing` is used alongside `area` and there is missing data in the chart, the background will be glitchy. See [apexcharts.js/#2180](https://github.com/apexcharts/apexcharts.js/issues/2180)
0 commit comments