Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

chartist

> 编程语言
Open source

Simple responsive charts

13.4K stars0 likes2 views
WebsiteGitHub

About

Simple responsive charts

Big welcome by the Chartist Guy

NPM version Downloads Build status Coverage status Bundle size Join the chat at https://gitter.im/gionkunz/chartist-js

Chartist is a simple responsive charting library built with SVG. There are hundreds of nice charting libraries already out there, but they are either:

  • use the wrong technologies for illustration (canvas)
  • weighs hundreds of kilobytes
  • are not flexible enough while keeping the configuration simple
  • are not friendly to designers
  • more annoying things

That's why we started Chartist and our goal is to solve all of the above issues.


Quickstart   •   What is it made for?   •   What's new in v1?   •   Docs   •   Examples   •   Contribution

Quickstart

Install this library using your favorite package manager:

bash
pnpm add chartist
# or
yarn add chartist
# or
npm i chartist

Then, just import chart you want and use it:

javascript
import { BarChart } from 'chartist';

new BarChart('#chart', {
  labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'],
  series: [
    [1, 2, 4, 8, 6, -2, -1, -4, -6, -2]
  ]
}, {
  high: 10,
  low: -10,
  axisX: {
    labelInterpolationFnc: (value, index) => (index % 2 === 0 ? value : null)
  }
});

Need an API to fetch data? Consider Cube, an open-source API for data apps.


## What is it made for?

Chartist's goal is to provide a simple, lightweight and unintrusive library to responsively craft charts on your website. It's important to understand that one of the main intentions of Chartist is to rely on standards rather than providing it's own solution to a problem which is already solved by those standards. We need to leverage the power of browsers today and say good bye to the idea of solving all problems ourselves.

Chartist works with inline-SVG and therefore leverages the power of the DOM to provide parts of its functionality. This also means that Chartist does not provide it's own event handling, labels, behaviors or anything else that can just be done with plain HTML, JavaScript and CSS. The single and only responsibility of Chartist is to help you drawing "Simple responsive Charts" using inline-SVG in the DOM, CSS to style and JavaScript to provide an API for configuring your charts.

Plugins

Coming soon.

For v0.11

Some features aren't right for the core product but there is a great set of plugins available which add features like:

  • Axis labels
  • Tooltips at data points
  • Coloring above/below a threshold

and more.

See all the plugins here.

Contribution

We are looking for people who share the idea of having a simple, flexible charting library that is responsive and uses modern and future-proof technologies. The goal of this project is to create a responsive charting library where developers have their joy in using it and designers love it because of the designing flexibility they have. Please contribute to the project if you like the idea and the concept and help us to bring nice looking responsive open-source charts to the masses.

Contribute if you like the Chartist Guy!

Issues· 252 open

View all issuesOpen on GitHub
  • #1330

    Dependency Dashboard

    Updated Oct 1, 2026
  • #1471

    [Bug]:

    bugUpdated Sep 10, 2026
  • #1470

    [Bug]:

    bugUpdated Sep 10, 2026
  • #1469

    [Bug]:

    bugUpdated Sep 10, 2026
  • #1463

    Grid/label defaults are unreadable in dark mode

    enhancementUpdated Aug 12, 2026
  • #1459

    Gold

    enhancementUpdated Feb 20, 2026
  • #1458

    Gold bet

    enhancementUpdated Feb 20, 2026
  • #1456

    [Bug]: Limit of segments in pie chart

    bugUpdated Nov 27, 2025
  • #1455

    [Bug]: Labels on the X axis is not directly centered but slightly offsetted

    bugUpdated Nov 1, 2025
  • #895

    “Placeholder” for empty donut

    enhancementUpdated Aug 4, 2025

> Tags

TypeScriptcharting-librarychartistjavascriptresponsive-charts

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言