react-frappe-charts-upgraded
v1.1.1
Published
A version of React Frappe charts that supports a modern version of Frappe Charts.
Downloads
9
Maintainers
Readme
React Frappe Charts Upgraded
A version of React Frappe charts that supports a modern version of Frappe Charts.
Installation
React Frappe Charts requires React 16.8.0 or later.
$ npm install --save react-frappe-charts-upgraded
Usage
import ReactFrappeChart from "react-frappe-charts";
export default function MyChart(props) {
return (
<ReactFrappeChart
type="bar"
colors={["#21ba45"]}
axisOptions={{ xAxisMode: "tick", yAxisMode: "tick", xIsSeries: 1 }}
height={250}
data={{
labels: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
datasets: [{ values: [18, 40, 30, 35, 8, 52, 17, 4] }],
}}
/>
);
}
Updating the data
prop would update the chart with new data.