Run command
Type-check passes. Now let me verify in the browser — checking the chart-type toggle and the combo series buckets.
The layout is correct: controls on top, the visualization toggle with 5 chart types (Grouped, Stacked, Line, Stacked Area, Bar + Line), the chart, then the table. The grouped bar chart now shows distinct colors per metric. Let me click "Bar + Line" to verify the combo mode shows the Bar/Line series buckets in the table.
The combo "Bar + Line" mode works: the chart shows bars for most metrics plus a line for one (visible as the blue trend line at top), and the table now has a "BAR SERIES" section header with a count badge. Let me scroll a bit more to confirm both Bar and Line section headers render.
Everything works exactly as requested. The combo mode shows two draggable section headers — BAR SERIES (4) and LINE SERIES (1) — with metrics pre-allocated into each (Customer Acquisition Cost defaults to the line). Each metric row keeps its drag handle, and the legend confirms "Drag rows between Bar / Line series."
Here's a summary of what I built:
Intelligent chart-type toggle on top of the chart. The available types adapt to how many metrics are enabled:
I said you should give all possible combinations. There is only one combination of a stacked bar chart with a line, which we don't have. And go for more if there are.
You're right — the combo mode only had "grouped bar + line." Let me read the current charts component and expand the combo variants to cover all meaningful combinations.
The user wants the combo (bar+line) to come in both grouped and stacked variants, since "stacked bar + line" was missing. Let me first check how the dashboard references the combo type so I update all usages consistently.
Now I understand the full picture. The complete set of meaningful combinations for multi-metric time series is: Grouped Bar, Stacked Bar, Line, Area, Stacked Area, plus two combos — Grouped Bar + Line and Stacked Bar + Line. Let me update the chart types.
Now update the isCombo detection and the combo rendering to support stacked bars:
Now update the dashboard's isCombo check to use the new helper:
Now let me type-check and verify both combo variants in the browser:
Run command