pie charts react code example
Example: pie charts react
import React from "react";
import Chart from "react-apexcharts";
export default class PieChart extends React.Component {
constructor(props) {
super(props);
this.state = {
options: {
series: [40, 30, 15, 15],
labels: ["Apple", "Mango", "Lemon", "Banana"]
}
};
}
render() {
return (
);
}
}