
Chart | Data shape | Use when |
|---|---|---|
Permission-like matrix values. | Use it for dense access and security matrices. | |
Grid values representing availability. | Use it to compare uptime windows. | |
Date/value pairs over a calendar range. | Use it to show daily activity patterns. | |
Grid of pairwise values. | Use it for correlation-like analysis. | |
Date/value pairs for retention events. | Use it to scan day-level consistency. | |
Daily sales values over a date range. | Use it when weekday and date position matter. | |
Dense grid with continuous color scale. | Use it for density and occupancy surfaces. | |
Grid coordinates with numeric intensity. | Use it to find concentration by hour and day. | |
Feature/category values on a two-dimensional grid. | Use it to find usage hotspots. | |
Daily incident counts over a date range. | Use it when the calendar shape carries meaning. | |
Numeric grid values mapped to color. | Use it when color should explain intensity. | |
Daily quality values. | Use it for quality gate consistency over time. | |
Queue depth by queue and time bucket. | Use it for operational queues. | |
Risk values by component and area. | Use it before releases to focus attention. | |
Daily values across a release period. | Use it for calendar-driven delivery views. | |
Resource and time values on a matrix. | Use it for infrastructure saturation. | |
Larger matrix of risk values. | Use it when dense matrix comparison matters. | |
Two-dimensional grid cells with values. | Use it for workload concentration. | |
Date/value activity pairs. | Use it to show consistency and spikes over time. | |
Daily build values with a color scale. | Use it when calendar and intensity both matter. |
use fission::prelude::*;
use fission::charts::{Axis, Chart, HeatmapSeries, VisualMap};
// The parent resolves display labels from its translation bundles.
fission_component! {
pub HeatmapChart<()> {
props {
chart_title: String,
series_label: String,
column_labels: Vec<String>,
row_labels: Vec<String>,
queued_jobs: Vec<(usize, usize, f32)>,
}
}
view(chart, _state, _cx) =>
Chart(
title: Some(chart.chart_title.clone()),
x_axis: Some(Axis::category(
chart.column_labels.iter().map(String::as_str).collect(),
)),
y_axis: Some(Axis::category(
chart.row_labels.iter().map(String::as_str).collect(),
)),
visual_map: Some(VisualMap::new().min(0.0).max(100.0)),
series: vec![HeatmapSeries::new(&chart.series_label)
.data(chart.queued_jobs.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. |