interactive-chart
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

Interactive Chart

npm dependencies

📈 📉 push datas and make interactive chart 📊

Demo

https://interactive-chart.vercel.app/

Line Chart

make chart with Canvas

Pie Chart

make chart with SVG

How to use

npm i interactive-chart
// Line Chart
new Line({
  selector: "root", // DOM element id,
  chartTitle: "Accountbook Line Chart", // chart title
  data, // chart data
});
 
// Pie Chart
new Pie({
  selector: "root", // DOM element id,
  chartTitle: "Accountbook Line Chart", // chart title
  data, // chart data
});
// data type
[
  {
    "month": 11,
    "data": [
      {
        "date": 1,
        "data": [
          { "type": "용돈", "amount": 3000 },
          { "type": "생활", "amount": -30000 },
          { "type": "쇼핑/뷰티", "amount": -10000 }
        ]
      },
      {
        "date": 2,
        "data": [
          { "type": "생활", "amount": -30000 },
          { "type": "식비", "amount": -50000 },
          { "type": "월급", "amount": 5000 }
        ]
      },
      ...

Package Sidebar

Install

npm i interactive-chart

Weekly Downloads

7

Version

0.0.11

License

MIT

Unpacked Size

425 kB

Total Files

28

Last publish

Collaborators

  • taenykim