mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Implement clickable legend items to show/hide best/peak price period overlays in generated ApexCharts YAML configuration. Legend behavior by configuration: - Only best price: No legend (overlay always visible) - Only peak price: Legend shown, peak toggleable (starts hidden) - Both enabled: Legend shown, both toggleable (best visible, peak hidden) Changes: - Best price overlay: in_legend only when peak also enabled - Peak price overlay: always in_legend with hidden_by_default: true - Enable experimental.hidden_by_default when peak price active - Price level series (LOW/NORMAL/HIGH): hidden from legend when overlays active, visible otherwise (preserves easy legend enable) - Add triangle icons (▼/▲) before overlay names for visual distinction - Custom legend markers (size: 0) only when overlays active - Increased itemMargin for better visual separation Impact: Users can toggle best/peak price period visibility directly in the chart via legend click. Without overlays, legend behavior unchanged - users can still enable it by setting show: true. |
||
|---|---|---|
| .. | ||
| api | ||
| binary_sensor | ||
| config_flow_handlers | ||
| coordinator | ||
| custom_translations | ||
| entity_utils | ||
| interval_pool | ||
| sensor | ||
| services | ||
| translations | ||
| utils | ||
| __init__.py | ||
| config_flow.py | ||
| const.py | ||
| data.py | ||
| diagnostics.py | ||
| entity.py | ||
| icons.json | ||
| manifest.json | ||
| services.yaml | ||