fix: conditionally enable tooltips for first series based on highlight_best_price

Fixes #63
This commit is contained in:
Julian Pawlowski 2025-12-21 10:44:29 +00:00
parent 9eb5c01c94
commit 4e0c2b47b1

View file

@ -546,7 +546,7 @@ async def handle_apexcharts_yaml(call: ServiceCall) -> dict[str, Any]: # noqa:
}, },
"tooltip": { "tooltip": {
"enabled": True, "enabled": True,
"enabledOnSeries": [1, 2, 3, 4, 5], # Enable for all price level series "enabledOnSeries": [1, 2, 3, 4, 5] if highlight_best_price else [0, 1, 2, 3, 4],
"marker": { "marker": {
"show": False, "show": False,
}, },