小编Uil*_*mim的帖子

类型错误:无法读取未定义的属性(读取“toString”)(apex-charts)

我当时正在开发一个个人项目,我正在考虑使用 apexcharts,但是图像中显示的错误开始出现,如果我在图表组件中设置宽度和高度属性,它就会消失,如果我将站点放入,它也会消失正在生产中,但目前我正在研究布局的响应能力

\n

1

\n
export 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)

javascript sass next.js apexcharts

3
推荐指数
1
解决办法
5037
查看次数

标签 统计

apexcharts ×1

javascript ×1

next.js ×1

sass ×1