
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::{Axis, Chart, LineSeries};
pub struct HierarchyAndFlowChart;
impl From<HierarchyAndFlowChart> for Widget {
fn from(_: HierarchyAndFlowChart) -> Widget {
Chart::new()
.title("Hierarchy and flow")
.x_axis(Axis::category(vec!["A", "B", "C"]))
.y_axis(Axis::value())
.series(vec![LineSeries::new("Series").data(vec![1.0, 2.0, 3.0]).into()])
.into()
}
}
Area | What to decide | How to verify |
|---|---|---|
Data shape | Keep source rows in typed Rust structs, then map them into the series type shown in the example. | Unit test the mapping separately from rendering. |
Options | Choose axes, legends, labels, animation, and interaction based on the user's task. | Add a screenshot test when changing visual behavior. |
Accessibility | Provide a clear title and adjacent summary text for important trends or outliers. | Inspect the generated semantics and make sure the chart is understandable without color alone. |
Failure handling | Render an empty, loading, or error state before constructing the chart if data is unavailable. | Test empty data, partial data, and failed fetches. |
Performance | Prefer summarized or windowed data for very large datasets; keep full raw history in the data layer. | Profile frame time and interaction latency with representative data volumes. |