Charts reference
A chart is a projection of application data, not the data model itself. Fission Charts provides typed series and configuration which render as a normal Fission widget. Use this reference to choose the representation and check precisely which values, units and interaction each API supports.
Chart families
Line - 36 chart variants. Authoring with Compose
Enable Fission's charts feature, prepare the report in ordinary Rust, then pass it into a small presentation component. Here, labels and values describe completed orders in matching reporting intervals. They are component inputs, not retained local state.
use fission::prelude::*;
use fission::charts::{Axis, Chart, LineSeries};
// The parent resolves display labels from its translation bundles.
fission_component! {
pub CompletedOrdersChart<()> {
props {
chart_title: String,
series_label: String,
labels: Vec<String>,
completed_orders: Vec<f32>,
}
}
view(report, _state, _cx) {
let labels = report.labels.iter().map(String::as_str).collect();
} =>
Chart(
title: Some(report.chart_title.clone()),
x_axis: Some(Axis::category(labels)),
y_axis: Some(Axis::value().min(0.0)),
series: vec![
LineSeries::new(&report.series_label)
.data(report.completed_orders.clone())
.into(),
],
)
}
Use named imports for chart types. In particular, fission::charts::Grid and fission::charts::Tooltip differ from the layout grid and UI tooltip exported by the prelude.
Keep the model and its projection distinct
Retain authoritative quantities and identifiers in domain types. Aggregate before converting to the chart's display values, and keep labels aligned with the corresponding observations. A display vector index is not a durable order, service or customer ID.
Effects load or refresh data; reducers record the result. A component should present loading, empty, error or ready state rather than start a request while converting into a widget. Reuse the same prepared snapshot for related charts so that their totals and reporting periods agree.
The gallery includes 3D scene examples alongside chart families. Those use a separate scene API and the three-d feature, not interchangeable Chart series. Individual references also identify current limits, including unweighted Sankey links and visual-only toolbox/timeline elements.
Check the question, not just the drawing
A screenshot can confirm that marks were drawn, but not that a count was correctly converted to a rate or that a missing observation was handled honestly. Test preparation separately, then exercise any control through its actual reducer/effect flow.
Inspect the real rendered target at representative sizes. Provide the important values and findings outside the image, and retain a table or equivalent controls where colour, precision or pointer-only gestures would otherwise prevent someone answering the same question.