导航搜索
搜索并跳转到页面
Loading dashboard...
用于表示进度、表现或状态对比,适合展示构成比例。
示例代码
<CategoryBar data={data} showScale barHeight={6} />示例代码
<CategoryBar data={data} showLabels showScale barHeight={6} />示例代码
const data = [
{ label: "A", value: 10, color: "oklch(0.646 0.222 41.116)" },
{ label: "B", value: 10, color: "oklch(0.6 0.118 184.704)" },
{ label: "C", value: 20, color: "oklch(0.622 0.191 142.495)" },
]
<CategoryBar data={data} showScale barHeight={6} />示例代码
<CategoryBar
data={statusData}
showScale
barHeight={6}
currentValue={78}
/>