A chart consumes a projection of application data. The projection may bind named columns, map a numeric value to colour or turn term counts into display weights, but it should not become a second authority for the report.
Keep fetching, validation and aggregation in ordinary Rust and the existing effect/reducer flow. Compose then connects the ready snapshot to the chart.
Which terms deserve attention, without implying sentiment or exact visual ratios?
Typed values do not eliminate schema checks
Dataset stores optional dimension names and rows of DataValue. Encode selects dimensions by string name. Those names are runtime schema keys, not Rust struct fields checked by the compiler.
The current numeric extraction can turn absent, null or unparseable cells into zero. Build a validated projection with complete numeric values rather than allowing invalid source records to appear as successful zero observations. The encoded example shows the actual supported line/bar path instead of assuming every series consumes datasets.
Preserve meaning through presentation
Use stable internal keys and translated visible labels. Keep source money, counts and domain IDs in their proper types, converting only final display values where the chart needs f32.
A colour scale must explain its endpoints and saturation policy. A word cloud's layout weights are not its authoritative term counts. Neither presentation is an adequate substitute for exact values in accessible text or tables.
Verify both sides of the boundary
Test row alignment, dimension names, aggregation and missing-data rules before inspecting the chart. Then use LiveTest for the actual responsive rendering and any required interaction. Gallery screenshots identify a presentation, not correctness, accessibility or performance of application data.