Skip to main content

Quick start

Install​

npm install @iamzices/chartable

Or, without a build step, load it with a script tag and call Chartable.render() instead of importing render:

<script src="https://cdn.jsdelivr.net/npm/@iamzices/chartable"></script>

Render a chart​

import { render } from "@iamzices/chartable";

render(document.body, {
title: "Monthly sales",
kind: "bar",
columns: ["Month", "Sales"],
rows: [
["Jan", 120],
["Feb", 180],
["Mar", 150],
],
});