Observed Behavior
On the graph page with "Multiple Y-Axes" enabled, deselecting a topic from the sidebar removes its series line from the chart, but the corresponding y-axis stays on the plot. Y-axes accumulate as topics are toggled and never get pruned.
Expected Behavior
When a topic is deselected, its y-axis should be removed from the chart so the axes always match the currently selected topics.
Steps to Reproduce
- Open the graph page
- Enable "Multiple Y-Axes" in the graph config
- Select 2-3 topics from the sidebar — confirm each gets its own y-axis
- Deselect one of the topics
- The series disappears, but its y-axis label/scale remains rendered
Notes
The multi-y-axis effect in graph.component.ts (around the showMultipleYAxes block) rebuilds yaxis configs from this.data.keys(), but it only re-runs when the showMultipleYAxes signal flips — not when topics are added/removed. The yaxis config needs to also refresh when the selected topic set changes (same path that updates the series after valuesSubject changes).
Observed Behavior
On the graph page with "Multiple Y-Axes" enabled, deselecting a topic from the sidebar removes its series line from the chart, but the corresponding y-axis stays on the plot. Y-axes accumulate as topics are toggled and never get pruned.
Expected Behavior
When a topic is deselected, its y-axis should be removed from the chart so the axes always match the currently selected topics.
Steps to Reproduce
Notes
The multi-y-axis effect in graph.component.ts (around the showMultipleYAxes block) rebuilds yaxis configs from this.data.keys(), but it only re-runs when the showMultipleYAxes signal flips — not when topics are added/removed. The yaxis config needs to also refresh when the selected topic set changes (same path that updates the series after valuesSubject changes).