talira

Chartist

Simple, responsive JavaScript charts drawn in SVG and styled with CSS, with no dependencies

open sourceMIT OR WTFPLfree

Chartist draws simple, responsive charts in SVG that you style with CSS, through predictable classes and custom properties rather than a theme engine. Charts respond to media queries or to their own container, bars and lines combine in one chart on as many axes as you need, and charts render anywhere SVG does, including on a server with real text labels for PDFs, email and images. Every element passes through an open pipeline that plugins hook into. It's written in TypeScript with no dependencies, works as a native ES module without a build step, installs with npm install chartist, and is dual-licensed MIT or WTFPL.

Problems it solves

  • I want lightweight charts I can style entirely with CSS
  • I need responsive SVG charts without pulling in a big charting library
  • I want to render charts on the server as SVG for emails and PDFs

Features

  • SVG charts styled with CSS classes and custom properties
  • Responsive by media query or container
  • Combined bar and line charts on multiple axes
  • Server-side rendering with real SVG text
  • Plugin pipeline for every element
  • TypeScript, no dependencies, native ES module

Alternatives

The same job

These do what Chartist does.

  1. Apache ECharts Open source JavaScript library for interactive charts and visualization
  2. ApexCharts Interactive SVG charts for the web, free under M revenue
  3. nivo React chart components built on d3, with SVG, HTML and canvas charts, motion and server-side rendering
  4. Recharts Composable charting library built from React components on SVG and D3
  5. Chart.js Simple yet flexible JavaScript charting for the web
  6. Vega Visualization grammar: describe interactive charts in JSON and render them to Canvas or SVG

Compare Chartist with the top 3