import React, { Component } from "react"; import Card from "@mui/material/Card"; import { Typography } from "@mui/material"; import dynamic from "next/dynamic"; const Chart = dynamic(() => import("react-apexcharts"), { ssr: false, }); class RadarWithPolygonFill extends Component { constructor(props) { super(props); this.state = { series: [ { name: "Series 1", data: [20, 100, 40, 30, 50, 80, 33], }, ], options: { chart: { height: 350, type: "radar", }, dataLabels: { enabled: true, }, plotOptions: { radar: { size: 140, polygons: { strokeColors: "#e9e9e9", fill: { colors: ["#f8f8f8", "#fff"], }, }, }, }, title: { text: "Radar with Polygon Fill", }, colors: ["#FF4560"], markers: { size: 4, colors: ["#fff"], strokeColor: "#FF4560", strokeWidth: 2, }, tooltip: { y: { formatter: function (val) { return val; }, }, }, xaxis: { categories: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", ], }, yaxis: { tickAmount: 7, labels: { formatter: function (val, i) { if (i % 2 === 0) { return val; } else { return ""; } }, }, }, }, }; } render() { return ( <> Radar with Polygon-fill ); } } export default RadarWithPolygonFill;