Getting started
@statistikzh/charts is a data visualization library for the Canton of Zurich.
It provides ready-to-use chart types for web applications.
The library is maintained by the Office for Statistics and Data of the Canton of Zurich.
What you can build
Section titled “What you can build”- Bar charts, horizontal or vertical, with grouped, stacked, and normalized variants
- Line charts for time series, with optional grouping
- Interactive legends and optional tooltips
Every chart is a self-contained instance: you create it once, feed it data and options, and update either whenever they change.
Next steps
Section titled “Next steps”- Install the package via npm or a CDN.
- Learn the create, update, clean up lifecycle shared by every chart.
- Shape your data to match the rules each chart type expects.
- Pick a chart type: Bar chart or Line chart.