
Chart | Data shape | Use when |
|---|---|---|
Actual and benchmark values side by side. | Use it when each category needs a direct benchmark. | |
Stacked BarSeries values. | Use it for departmental totals and breakdowns. | |
Signed budget variances on a horizontal axis. | Use it when over and under budget must be symmetric. | |
BarSeries plus maximum axis and background. | Use it for quota and inventory screens. | |
Multiple series stacked per category. | Use it when total and contribution both matter. | |
Vec<f32> aligned to categories. | Use it for short lists and cards. | |
Segment values grouped by period. | Use it to compare segments without splitting the page. | |
Positive and negative BarSeries values. | Use it for sentiment, deltas, and balance views. | |
Values represented by repeated symbols. | Use cautiously: the current symbol count is not one symbol per unit. | |
Multiple BarSeries on the same categories. | Use it for side-by-side period comparisons. | |
BarSeries with background styling. | Use it for KPI completion panels. | |
BarSeries values crossing zero. | Use it for variance and profit/loss dashboards. | |
Values shown against a visual capacity track. | Use it for scorecards where progress is the dominant signal. | |
PictorialBarSeries values. | Explain the renderer's symbol-count convention and show exact values. | |
Rounded bars for a compact queue view. | Use it when bars sit inside a polished app surface. | |
Product values stacked into category totals. | Use it for portfolio composition. | |
Positive and negative values on one value axis. | Use it when gains and losses must share one baseline. | |
Sequential deltas that explain a final value. | Use it for financial bridge and variance analysis. | |
BarSeries with horizontal orientation. | Use it for rankings with long labels. | |
Multiple BarSeries. | Use it for region-by-period comparisons. | |
Category/value pairs sorted for comparison. | Use it when exact rank is the product question. | |
Gross sales, deductions and net sales. | Reconcile a retail sales bridge with cumulative offsets. | |
Category deltas with negative values. | Use it for change analysis around zero. | |
BarSeries with border radius. | Use it when the chart sits in a polished product dashboard. | |
Values against a fixed target background. | Use it when completion against capacity is more important than raw count. | |
Deltas above and below a service baseline. | Use it for operational exception reporting. | |
BarSeries values on a category axis. | Use it in repeated dashboard cards. | |
BarSeries values on a category axis. | Use it when multiple products use the same visual scale. | |
BarSeries with category y-axis. | Use it for top-N views. | |
Multiple BarSeries sharing a stack key. | Use it when totals and composition matter together. | |
Grouped category values across periods. | Use it to compare periods inside each category. | |
Team categories ranked by workload. | Use it when managers need quick capacity comparison. | |
Buckets with counts per age range. | Use it when the reader needs the shape of a queue. | |
BarSeries with background color. | Use it for completion and capacity comparisons. | |
Usage and capacity side by side. | Compare unequal limits or show over-allocation without clipping. | |
Delta values over ordered categories. | Use it for profit bridges and cumulative change explanations. | |
Seven ordered weekday values. | Use it when the weekly rhythm is easier as bars than a line. | |
BarSeries with category y-axis. | Use it when labels would collide on the x-axis. |
Chart input | Rust field type | Meaning |
|---|---|---|
title | Option<String> | A translated description of the report. |
x_axis, y_axis | Option<Axis> | Category and numeric scales; swap their roles for horizontal bars. |
series | Vec<Series> | One or more explicit Series::Bar(...) values. |
legend | Option<Legend> | Identifies multiple displayed measures. |
width, height | Option<f32> | Optional fixed dimensions, rather than mandatory chart sizing. |