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 MultipleRadialbars extends Component { constructor(props) { super(props); this.state = { series: [44, 55, 67, 83], options: { chart: { height: 350, type: "radialBar", }, plotOptions: { radialBar: { dataLabels: { name: { fontSize: "22px", }, value: { fontSize: "16px", }, total: { show: true, label: "Total", formatter: function (w) { // By default this function returns the average of all series. The below is just an example to show the use of custom formatter function return 249; }, }, }, }, }, labels: ["Apples", "Oranges", "Bananas", "Berries"], }, }; } render() { return ( <> Multiple Radialbars ); } } export default MultipleRadialbars;