Skip to content

Charts

The datachart.charts module of the datachart package provides various chart types to create data visualizations. The module is designed to be highly customizable and easy to use.

The charts are grouped by the question they answer. Each card names a chart, says what it is for, and links to its how-to guide. The chips under the name say how the chart composes with the other charts through the composition functions:

  • Panel — the chart can be overlaid with other charts in one coordinate space through Panel. A chart that owns its whole axes (the heatmap, Sankey chart, treemap, network chart, calendar heatmap, and scatter matrix) or draws a mirrored or task axis (the pyramid and gantt charts) cannot, and shows Panel. The box, violin, raincloud, and ridgeline plots overlay with other kinds of charts, but a panel holds one dataset of each of these kinds.
  • Grid — the chart can take a cell of a combined figure through Grid. Every chart can.

A finished chart goes further through the composition guides, the styling guides, and the utility guides.

Values along an axis or across categories: how a quantity moves and how the categories compare.

Distributions

The spread of the values within each group, from a binned summary to every observation.

Relationships

How two or more variables relate to each other.

Flows

How a quantity moves between categories: where it comes from and where it goes.

Part of a Whole

How a whole splits into parts, and parts into smaller parts.

Across Charts

The options every chart shares, worth a guide of their own.