Examples
Every example below comes straight from its chart function’s own Example: docstring section in this repo’s dataviz_mojo/ source – each page shows the actual grammar-of-graphics pattern next to its actual rendered output, so you can see exactly what it takes to produce that chart.
Most reach for a single one-call convenience function – bar(categories, values), scatter(x, y), and so on, one per mark, imported straight from dataviz_mojo – built on top of the fuller Plot builder (.encode()/.theme()/.labels(), then render()) that the rest still use directly, for whatever these don’t cover yet.
Basic marks
The core chart types – one mark, default theme (donut is pie’s own ring variant).
- Scatter
- Line
- Bar
- Area
- Pie/Donut
- Single Axis
- Effect Scatter
- SVG Accessibility
- Reference Band
- Vertical Reference Line
- Point Marker
Categorical business charts
Chart types built around one categorical dimension: rankings, timelines, progress, period-over-period comparisons, and process stages.
- Lollipop
- Waterfall
- Gantt
- Span Chart
- Population Pyramid
- Bullet
- Grouped Bar
- Stacked Bar
- Slope
- Funnel
- Bump
- Streamgraph
- Reference Line
Statistical & financial
Distributions, binned counts, grid/matrix data, and OHLC price data.
Relationships & flows
Weighted connections between entities, not a value per category.
Radial & polar
Chart types built on a polar (angle + radius) coordinate system instead of a cartesian one.
Multivariate
Several numeric dimensions compared at once on one shared layout, not a single value per category.
Grid & matrix
Two categorical dimensions laid out as a grid, extending Mark.HEATMAP’s own grid-cell idea.
Hierarchical data
A tree, not a value per category – one flattened id/parent_id/value row per node, see Plot.encode_hierarchy().