
Chart | Data shape | Use when |
|---|---|---|
Chart data with explicit utility actions. | Use it when analysis actions belong close to the chart. | |
Chart data with a typed text callout. | Use it for guided dashboards and reports. | |
Series data with axis-oriented tooltip intent. | Use it when the whole axis position is the hover target. | |
Line values with highlighted breach band. | Use it when unsafe ranges need visible boundaries. | |
Point data with visible brush preview. | Use it for exploratory selection. | |
Scatter points plus brush rectangle configuration. | Use it when users select data before drilling in. | |
Period labels with changing chart state. | Use it for capacity changes across time. | |
Ordered data with a selected zoom range. | Use it for long series where one window is active. | |
Trend data with event mark points. | Use it when specific moments explain the data. | |
Chart data with restore, brush, zoom, and save actions. | Use it when chart controls need a consistent built-in place. | |
Chart plus typed rect, text, and line graphics. | Use it for callouts and shaded product ranges. | |
Trend line with typed graphic overlay. | Use it to add explanations without leaving the chart model. | |
Grouped series with tooltip intent. | Use it when comparison needs hover detail. | |
Series data with item-level tooltip intent. | Use it when individual marks carry detail. | |
Trend data plus mark lines and shaded bands. | Use it to keep thresholds in the chart instead of external notes. | |
Chart data with reset action included. | Use it when user exploration needs a safe reset. | |
Scatter points with selection configuration. | Use it when users inspect clusters interactively. | |
Long ordered telemetry values with zoom. | Use it for monitoring and investigation. | |
Chart data with release timeline options. | Use it for versioned or period-based views. | |
Chart data with a timeline control. | Use it when the same view switches between periods. |
use fission::prelude::*;
use fission::charts::{Axis, Chart, ChartInteraction, ChartTooltipTrigger, LineSeries};
// The parent resolves display labels from its translation bundles.
fission_component! {
pub InteractionChart<()> {
props {
chart_title: String,
series_label: String,
category_labels: Vec<String>,
completed_orders: Vec<f32>,
}
}
view(report, _state, _cx) =>
Chart(
title: Some(report.chart_title.clone()),
x_axis: Some(Axis::category(
report.category_labels.iter().map(String::as_str).collect(),
)),
y_axis: Some(Axis::value()),
interaction: ChartInteraction::tooltips(ChartTooltipTrigger::Axis)
.keyboard_focus(true),
series: vec![LineSeries::new(&report.series_label)
.data(report.completed_orders.clone())
.into()],
)
}
Area | What to decide | How to check it |
|---|---|---|
Data shape | Keep source rows in typed Rust structs, then map them into the series shown above. | Test that mapping separately from chart rendering. |
Options | Pick axes, legends, labels, motion, and interaction to answer the screen's question. | Add a screenshot test when the chart's appearance changes. |
Accessibility | Give the chart a clear title and explain important values in nearby text. Do not rely on color alone. | Inspect its semantics and check that the chart still makes sense without color. |
Failure handling | Show a loading, empty, or error state when the data is not ready. | Test empty data, partial data, and a failed fetch. |
Performance | Summarize or window very large datasets; keep the full history in your data layer. | Profile frame time and interaction latency with representative data. |