如何使Apex图表反应饼杆厚
我如何使钢筋更厚?
import React from "react";
import Chart from "react-apexcharts";
const series = [44, 55, 41, 17, 15];
const options = {
chart: {
type: "donut"
}
};
export default function PieChart() {
return (
<div>
<Chart options={options} series={series} type="donut" height={300} />
</div>
);
}
*沙盒样本在这里 https://codesandbox.io/s/vigilant-pateu-tv4t5q?file=/src/app/app.tsx * *
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
plotOptions-&gt;派 - &gt;甜甜圈 - &gt;尺寸
增加或减小甜甜圈尺寸。增加甜甜圈尺寸将降低条形宽度&amp;反之亦然。更新 codesandboxuse
plotOptions -> pie -> donut --> size
to increase or decrease the donut size. Increasing the donut size would decrease the bar width & vice versa. Updated codesandbox