我当时正在开发一个个人项目,我正在考虑使用 apexcharts,但是图像中显示的错误开始出现,如果我在图表组件中设置宽度和高度属性,它就会消失,如果我将站点放入,它也会消失正在生产中,但目前我正在研究布局的响应能力
\nexport function Chart() {\n const Chart = dynamic(() => import("react-apexcharts"), { ssr: false });\n const options: ApexOptions = {\n chart: {\n id: "chart",\n background: "#030a4d8d",\n fontFamily: "Roboto",\n width: "auto",\n height: "auto",\n redrawOnWindowResize: true,\n selection: {\n enabled: false,\n },\n toolbar: {\n show: false,\n },\n },\n dataLabels: {\n background: {\n borderRadius: 10,\n },\n style: {\n colors: ["#142085"],\n },\n },\n colors: ["#7e838c", "#474d59", "#363b47"],\n grid: {\n show: false,\n },\n legend: {\n fontFamily: "Roboto",\n },\n noData: {\n text: "Nenhum dado …
Run Code Online (Sandbox Code Playgroud)