README
Interactive Chart
π π 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 }
]
},
...