
Setting | Type | Meaning |
|---|---|---|
CalendarHeatmapSeries::data | Vec<(&str, f32)> | Converts date/value pairs into the series' owned Vec<(String, f32)>. |
CalendarHeatmapSeries::range | &str, &str | Sets the displayed start and end dates. |
Chart::visual_map | VisualMap | Sets the numeric colour range. |
Chart::series | Vec<Series> | Adds the calendar series; Cartesian axes are not required. |
use fission::charts::{CalendarHeatmapSeries, Chart, VisualMap};
let chart = Chart::new()
.title("Incidents opened per day")
.visual_map(VisualMap::new().min(0.0).max(10.0))
.series(vec![CalendarHeatmapSeries::new("Incidents")
.range("2026-10-01", "2026-10-31")
.data(vec![
("2026-10-01", 2.0),
("2026-10-02", 0.0),
("2026-10-03", 5.0),
])
.into()]);
use fission::prelude::*;
use fission::charts::{CalendarHeatmapSeries, Chart, Series, VisualMap};
// The parent resolves display labels from its translation bundles.
fission_component! {
pub IncidentVolumeCalendarChart<()> {
props {
chart_title: String,
series_label: String,
daily_values: Vec<(String, f32)>,
}
}
view(calendar, _state, _cx) =>
Chart(
title: Some(calendar.chart_title.clone()),
visual_map: Some(VisualMap::new().min(0.0).max(10.0)),
series: vec![Series::CalendarHeatmap(CalendarHeatmapSeries {
name: calendar.series_label.clone(),
data: calendar.daily_values.clone(),
start: Some("2026-10-01".into()),
end: Some("2026-10-31".into()),
})],
)
}