Choosing a chart¶
The library exposes 15 chart types. The right one depends on the question you want the terminal output to answer.
Comparison charts¶
Use these when the reader needs to compare magnitudes or relative change.
Chart |
Use when |
|---|---|
|
Comparing independent values across categories |
|
Showing planned vs actual or before vs after values |
|
Highlighting positive and negative change around a center |
|
Showing composition of a total by segment |
|
Comparing speedup ratios in performance analysis |
Distribution charts¶
Use these when spread, skew, or percentile behavior matters.
Chart |
Use when |
|---|---|
|
Showing bucketed frequency counts |
|
Showing quartiles, whiskers, and outliers |
|
Comparing percentile cut points across groups |
|
Showing the cumulative shape of a distribution |
Trend and relationship charts¶
Chart |
Use when |
|---|---|
|
Showing ordered values over time or sequence |
|
Showing correlation such as ad spend vs conversions |
|
Embedding tiny trends inside a textual table |
Tabular and matrix output¶
Chart |
Use when |
|---|---|
|
Showing dense matrix intensity at a glance |
|
Showing rank-ordered summaries across criteria |
|
Showing headline metrics and deltas in one panel |
Preferred API¶
For new code, use the clean exported names and their data models:
BarChartwithBarDataHeatmapwith matrix and labelsLineChartwithLinePointSummaryBoxwithSummaryStats
Performance-specific note¶
NormalizedSpeedup is the chart type most closely tied to benchmark and
performance-analysis workflows. ComparisonBar, DivergingBar,
PercentileLadder, RankTable, and SummaryBox are still general
purpose charts, but they also map naturally to performance reporting.