import React from 'react'
import ReactApexChart from 'react-apexcharts'
import './styles.css'
const ApexChart = () => {
const [state, setState] = React.useState({
series: [
{
name: 'Revenue ($k)',
data: [80, 50, 30, 40, 100, 20],
},
],
options: {
chart: {
height: 350,
type: 'radar',
},
title: {
text: 'Monthly Sales Performance',
},
yaxis: {
stepSize: 20,
},
xaxis: {
categories: ['January', 'February', 'March', 'April', 'May', 'June'],
},
},
})
return (
<div>
<div id="chart">
<ReactApexChart
options={state.options}
series={state.series}
type="radar"
height={350}
/>
</div>
</div>
)
}
export default ApexChart