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 GradientDonut extends Component { constructor(props) { super(props); this.state = { series: [44, 55, 41, 17, 15], options: { chart: { width: 380, type: "donut", }, plotOptions: { pie: { startAngle: -90, endAngle: 270, }, }, dataLabels: { enabled: false, }, fill: { type: "gradient", }, legend: { formatter: function (val, opts) { return val + " - " + opts.w.globals.series[opts.seriesIndex]; }, }, title: { text: "Gradient Donut with custom Start-angle", }, responsive: [ { breakpoint: 480, options: { chart: { width: 200, }, legend: { position: "bottom", }, }, }, ], }, }; } render() { return ( <> Gradient Donut ); } } export default GradientDonut;