1.3.6 β’ Published 2 years ago
imcchart v1.3.6
imcChart
A React chart library, based on Ant Chart
English | νκΈ
β¨ Features
- Easy to integrate
- Provide editing tool
- Only Json data
π¦ Installation
$ npm install imcchart
π¨ Usage
import React from "react";
import EasyChart from "imcchart";
const ChartDemo = () => {
const sampledata = {
setting: {
title: "Sales by Country",
charttype: "column",
xField: "Country",
yField: "Sales",
aggregate: "sum",
series: "",
},
dtlist: [
{
Country: "Canada",
Product: "Carretera",
UnitsSold: 1618.5,
ManufacturingPrice: 3,
SalePrice: 20,
GrossSales: 32370,
Sales: 32370,
},
{
Country: "Germany",
Product: "Carretera",
UnitsSold: 1321,
ManufacturingPrice: 3,
SalePrice: 20,
GrossSales: 26420,
Sales: 26420,
},
{
Country: "France",
Product: "Carretera",
UnitsSold: 2178,
ManufacturingPrice: 3,
SalePrice: 15,
GrossSales: 32670,
Sales: 32670,
},
{
Country: "Germany",
Product: "Carretera",
UnitsSold: 888,
ManufacturingPrice: 3,
SalePrice: 15,
GrossSales: 13320,
Sales: 13320,
},
],
};
return (
<div>
<EasyChart authObj={sampledata} showmenu={true} />
</div>
);
};
export default Page;
β¨ Demo
π Document & API
See chart API for details. Common props:
Property | Description | Type | defaultValue |
---|---|---|---|
showmenu | edit or display | boolean | |
authObj | chart data & setting | json data | |
onChange | return changed data from edit | (val)=>console.log(val) |
β¨οΈ Development
https://github.com/ykn9080/imcChart
Or clone locally:
$ git clone git@github.com:ykn9080/imcchart.git
$ cd imcchart
$ npm install
$ npm start
Open your browser and visit http://127.0.0.1:5009
License
MIT
1.2.0
2 years ago
1.2.8
2 years ago
1.1.9
2 years ago
1.3.6
2 years ago
1.2.7
2 years ago
1.3.5
2 years ago
1.2.6
2 years ago
1.3.4
2 years ago
1.2.5
2 years ago
1.3.3
2 years ago
1.2.4
2 years ago
1.3.2
2 years ago
1.2.3
2 years ago
1.3.1
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.9
2 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.9
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.32
3 years ago
1.0.31
3 years ago
1.0.3
3 years ago
1.0.0
3 years ago