hass.tibber_prices/custom_components/tibber_prices/services
Julian Pawlowski 4971ab92d6 fix(chartdata): use proportional padding for yaxis bounds
Changed from fixed padding (0.5ct below min, 1ct above max) to
proportional padding based on data range (8% below, 15% above).

This ensures consistent visual "airiness" across all price ranges,
whether prices are at 30ct or 150ct. Both subunit (ct/øre) and
base currency (€/kr) now use the same proportional logic.

Previous fixed padding looked too tight on charts with large price
ranges (e.g., 0.6€-1.5€) compared to charts with small ranges
(e.g., 28-35ct).

Impact: Chart metadata sensor provides better-scaled yaxis_min/yaxis_max
values for all chart cards, making price visualizations more readable
with appropriate whitespace around data regardless of price range.
2025-12-22 23:39:35 +00:00
..
__init__.py feat(services): add fetch_price_info_range service and update schema 2025-11-25 20:44:39 +00:00
formatters.py fix: support main and subunit currency 2025-12-11 23:07:06 +00:00
get_apexcharts_yaml.py fix(apexcharts): synchronize y-axis tick intervals for consistent grid alignment 2025-12-21 17:39:12 +00:00
get_chartdata.py fix(chartdata): use proportional padding for yaxis bounds 2025-12-22 23:39:35 +00:00
get_price.py refactor(services): rename service modules to match service names 2025-11-25 20:44:39 +00:00
helpers.py feat(services): add rolling 48h window support to chart services 2025-12-01 23:46:09 +00:00
refresh_user_data.py refactor(services): split monolithic services.py into package 2025-11-18 20:07:05 +00:00