
Chart | Data shape | Use when |
|---|---|---|
Related alert nodes and links. | Use it for incident analysis. | |
Nested budget values sized by area. | Use it for budget share exploration. | |
Channel values over time. | Use it to show mix changes without losing continuity. | |
Hierarchical values sized by area. | Use it for part-to-whole hierarchy analysis. | |
Relationship nodes and edges. | Use it when paths and relationships matter more than axes. | |
Nested customer groups by value. | Use it for segment hierarchy and share. | |
Flow nodes and links. | Use it for transfer and loss diagrams. | |
Nested values in radial layers. | Use it for hierarchical composition with depth. | |
Nested file or team ownership nodes. | Use it for repository and ownership views. | |
Nodes and unweighted source/target links. | Use it to describe routes, not conversion amounts. | |
Hierarchy values as radial rings. | Use it when hierarchy and whole composition both matter. | |
Nested named nodes with values. | Use it for ownership and dependency hierarchy. | |
Platform nodes and dependency edges. | Use it for system overview screens. | |
Nested product categories. | Use it when users browse hierarchical structure. | |
Nested nodes arranged radially. | Use it when a compact hierarchy is needed. | |
Support stages as flow links. | Use it to analyze process movement. | |
Nodes and links with values. | Use it to explain relationship topology. | |
Nested values by storage class. | Use it when area should communicate magnitude. | |
Stacked stream values by time and category. | Use it for shifting composition over time. |
use fission::prelude::*;
use fission::charts::{Chart, TreeSeries, TreemapNode};
// The parent resolves display labels from its translation bundles.
fission_component! {
pub HierarchyChart<()> {
props {
chart_title: String,
series_label: String,
modules: Vec<TreemapNode>,
}
}
view(hierarchy, _state, _cx) =>
Chart(
title: Some(hierarchy.chart_title.clone()),
series: vec![TreeSeries::new(&hierarchy.series_label)
.data(hierarchy.modules.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. |