mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13: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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| formatters.py | ||
| get_apexcharts_yaml.py | ||
| get_chartdata.py | ||
| get_price.py | ||
| helpers.py | ||
| refresh_user_data.py | ||