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 Basic extends Component { constructor(props) { super(props); this.state = { series: [ { name: "Desktops", data: [10, 41, 35, 51, 49, 62, 69, 91, 148], }, ], options: { chart: { zoom: { enabled: false, }, }, dataLabels: { enabled: false, }, stroke: { curve: "straight", }, title: { text: "Product Trends by Month", align: "left", }, grid: { row: { colors: ["#f3f3f3", "transparent"], // takes an array which will be repeated on columns opacity: 0.5, }, }, xaxis: { categories: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", ], }, }, }; } render() { return ( <> Basic ); } } export default Basic;