mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
Problem: When using dual y-axes (price + hidden highlight for best-price overlay), ApexCharts calculates tick intervals independently for each axis. This caused misaligned horizontal grid lines - the grid follows the first y-axis ticks, but if the hidden highlight axis had different tick calculations, visual inconsistencies appeared (especially visible without best-price highlight). Solution: - Set tickAmount: 4 on BOTH y-axes to force identical tick intervals - Add forceNiceScale: true to ensure rounded tick values despite fixed min/max - Add showAlways: true to price axis in template modes to prevent axis disappearing when toggling series via legend Also add tooltip.shared: true to combine tooltips from all series at the same x-value into a single tooltip, reducing visual clutter at data points. Impact: Grid lines now align consistently regardless of which series are visible. Y-axis remains stable when toggling series in legend. |
||
|---|---|---|
| .. | ||
| 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 | ||