npm install --save react-apexcharts apexcharts
import Apexchart from "react-apexcharts";
function Chart() {
return (
<div>
<Apexchart
type="line"
series={[
{
name: "hello",
data: [1, 2, 3, 4, 5],
},
{
name: "bye",
data: [11, 12, 13, 14, 15],
},
]}
options={{
chart:{
height: 500,
width: 500,
},
}}/>
</div>
);
}
export default Chart;