
Chart | Data shape | Use when |
|---|---|---|
Nested value nodes. | Use it for budget or storage breakdowns. | |
Graph nodes plus edges. | Use it for relationship overview surfaces. | |
Time/value/category tuples. | Use it for campaign or demand mix. | |
Graph nodes plus edges. | Use it for dependency and topology diagrams. | |
Vertex list plus edges. | Use it for material, energy, or revenue flow. | |
Nested nodes with values. | Use it for product and resource hierarchies. | |
Nested nodes. | Use it for organization and ownership charts. | |
Nested value nodes. | Use it for hierarchy depth and composition. | |
Nested nodes. | Use it when hierarchy symmetry matters. | |
Nested value nodes. | Use it for nested part-to-whole data. | |
Graph nodes plus edges. | Use it for systems maps and service graphs. | |
Nested value nodes. | Use it for disk and memory allocation. | |
Time/value/category tuples. | Use it for composition changing over time. | |
Vertex list plus edges. | Use it for conversion path analysis. |
use fission::prelude::*;
use fission::charts::{Chart, TreemapNode, TreemapSeries};
// The parent resolves display labels from its translation bundles.
fission_component! {
pub HierarchyAndFlowChart<()> {
props {
chart_title: String,
series_label: String,
allocations: Vec<TreemapNode>,
}
}
view(budget, _state, _cx) =>
Chart(
title: Some(budget.chart_title.clone()),
series: vec![TreemapSeries::new(&budget.series_label)
.data(budget.allocations.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. |