Skip to content

taenykim/interactive-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Interactive Chart

npm dependencies

πŸ“ˆ πŸ“‰ push datas and make interactive chart πŸ“Š

Demo

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

Charts

Line Chart canvas Pie Chart svg
drag / move / resize / minimap / tooltip hovering / highlighting / information circle

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
  offsetMonth: 11 // current focusing month
});
// 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 }
        ]
      },
      ...