📊 Statistik Stadt Zürich Visualization Library | Read-only mirror of https://github.com/StatistikStadtZuerich/sszvis — Stadt Zürich. Issues & pull requests at the source.
  • TypeScript 91.6%
  • JavaScript 7.5%
  • HTML 0.6%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-21 12:00:45 +02:00
.github chore(github): add bug report issue template 2026-08-19 22:36:20 +02:00
.vscode doc: add hierarchical tab 2025-09-25 09:28:12 +02:00
contrib breaking: ⚠️ remove polyfills (#26) 2024-08-12 15:57:03 +02:00
docs docs: fix example tooltip 2025-12-07 17:29:46 +01:00
geodata Add historical topo file 2018-01-09 11:32:25 +01:00
scripts Docgen (#18) 2020-08-11 13:05:34 +02:00
src refactor: port the component index to typescript 2026-08-21 12:00:45 +02:00
test test: type the sunburst layout tests against the ported module 2026-08-21 12:00:34 +02:00
.browserslistrc Docgen (#18) 2020-08-11 13:05:34 +02:00
.eleventy.js chore: format with biome 2025-09-18 11:55:21 +02:00
.gitignore test: add unit tests for utility fns 2025-09-18 10:47:15 +02:00
.prettierignore breaking: ⚠️ upgrade D3 (#20) 2024-08-12 15:22:41 +02:00
.releaserc.json chore: 🔨 add semantic release script 2024-08-12 15:19:02 +02:00
AGENTS.md docs: add AGENTS 2025-09-23 09:03:43 +02:00
babel.config.js Docgen (#18) 2020-08-11 13:05:34 +02:00
biome.jsonc test: convert to typescript 2025-09-18 15:43:15 +02:00
flake.lock chore: bump deps 2025-09-17 09:14:06 +02:00
flake.nix chore: bump deps 2025-09-17 09:14:06 +02:00
LICENSE Add license 2017-10-03 14:31:44 +02:00
package-lock.json c: update npm workflow 2025-12-05 10:48:21 +01:00
package.json chore(ts): type-check the test files in CI 2026-08-20 09:07:09 +02:00
playwright.config.js breaking: ⚠️ upgrade D3 (#20) 2024-08-12 15:22:41 +02:00
README.md breaking: ⚠️ upgrade D3 (#20) 2024-08-12 15:22:41 +02:00
rollup.config.mjs build: bundle TypeScript 2025-09-19 16:29:32 +02:00
tsconfig.json chore(ts): type-check the test files in CI 2026-08-20 09:07:09 +02:00
tsconfig.test.json chore(ts): type-check the test files in CI 2026-08-20 09:07:09 +02:00
vitest.config.js test: convert to typescript 2025-09-18 15:43:15 +02:00

Statistik Stadt Zürich Visualization Library

sszvis can be installed from npm or embedded in a script tag. Please refer to the interactive documentation for instructions.

Documentation

The documentation is written in Markdown and bundled with Catalog.

Development

To get started, you first need to setup Nix.

To run the development shell:

nix develop

This library is bundled using Rollup. To start developing, install dependencies using npm first.

# Install dependencies first
npm install

# Build the library (if necessary use export `NODE_OPTIONS=--openssl-legacy-provider`)
npm run build

# Start library build in watch mode (this only rebuilds library scripts, not things like topojson)
npm run build:watch

# Start Catalog documentation server
npm start

Building

sszvis builds are automated. You don't have to run build tasks for publishing but you may need them for developing the library:

# Build everything necessary for publishing (if necessary use export `NODE_OPTIONS=--openssl-legacy-provider`)
npm run build

# Build the library
npm run build:lib

# Build topojson files
npm run build:topo

# Build documentation
npm run build:docs

Testing

# Start the server from which the screenshots should be taken
npm start

# Run all tests
npm test

# Or run individual tests
npm run test:snapshot

Deploying

Create a new version and push it, it will then be automatically deployed to NPM using GitHub Actions.

npm version minor
git push --follow-tags

License

sszvis is published under the BSD-3-Clause license. sszvis can freely be used but no support will be provided by Statistik Stadt Zürich.

Contact

E-Mail: statistik@zuerich.ch