
Chart | Data shape | Use when |
|---|---|---|
One bounded value mapped to an arc. | Use it when a single current status dominates the screen. | |
One required-check pass percentage on a gauge arc. | Summarise checks without implying a calibrated probability of success. | |
Single capacity value in a bounded range. | Use it when headroom is the only number that matters. | |
Angle/radius samples around a cycle. | Use it for circular process metrics. | |
Single score value in a bounded range. | Use it for health and readiness summaries. | |
Label/value pairs with an open center. | Show a flat device composition; add any total separately. | |
Expense categories as a small whole. | Use it for budget composition. | |
Label/value pairs with area-oriented rose layout. | Use it when relative shape is more important than a precise angle. | |
Label/value pairs around a circle. | Use it when cyclic position is meaningful. | |
Label/value pairs with radius emphasis. | Use it when presentation value is high and categories are few. | |
Label/value pairs for a small whole. | Use it when part-to-whole reading is the main task. | |
Platform dimensions as comparable vectors. | Use it to summarize readiness across product areas. | |
Several same-length dimensional vectors. | Use it to compare shapes across a few dimensions. | |
Revenue categories as label/value pairs. | Use it when contribution to total revenue matters. | |
Risk category values in radial form. | Use it for executive risk snapshots where visual emphasis helps. | |
Cyclic label/value pairs. | Use it when the shape wraps around a repeated cycle. | |
Health dimensions on a radial profile. | Use it for compact status summaries. | |
Traffic or source categories with values. | Use it for small source distributions. | |
Team capability vectors. | Use it when balance across dimensions is the main reading. | |
Angle/radius samples. | Use it for directional or cyclic measures. |
use fission::prelude::*;
use fission::charts::{Chart, PieSeries};
// The parent resolves display labels from its translation bundles.
fission_component! {
pub AccountPlanOverview<()> {
props {
chart_title: String,
series_label: String,
accounts_by_plan: Vec<(String, f32)>,
}
}
view(report, _state, _cx) {
let values = report.accounts_by_plan.iter()
.map(|(label, value)| (label.as_str(), *value))
.collect();
} => Chart(
title: Some(report.chart_title.clone()),
series: vec![PieSeries::new(&report.series_label)
.data(values)
.into()],
)
}