PieSeriesTypeAPI
PieSeriesType 接口的扩展文档,其中包含有关模块属性和可用 API 的详细信息。
演示
导入
import { PieSeriesType } from '@mui/x-charts'
显示在弧形中的标签。
类型:'formattedValue' | 'label' | 'value' | ((item: Omit<DefaultizedPieValueType, 'label'> & { label?: string }) => string)
圆心与弧形标签之间的半径。
可以是数字(以像素为单位)或带有百分比的字符串,例如 '50%'。
'100%' 是适合绘图区域的最大半径。
类型:number | string
默认值:(innerRadius - outerRadius) / 2
当弧形淡化时覆盖其属性。
类型:{
/**
* Value added to the default `outerRadius`.
* Can be negative. It is ignored if you provide a `faded.outerRadius` value.
*/
additionalRadius?: number
innerRadius?: number
outerRadius?: number
cornerRadius?: number
paddingAngle?: number
arcLabelRadius?: number
color?: string
}
当弧形高亮显示时覆盖其属性。
类型:{
/**
* Value added to the default `outerRadius`.
* Can be negative. It is ignored if you provide a `highlighted.outerRadius` value.
*/
additionalRadius?: number
innerRadius?: number
outerRadius?: number
cornerRadius?: number
paddingAngle?: number
arcLabelRadius?: number
color?: string
}
圆心与弧形起始点之间的半径。
可以是数字(以像素为单位)或带有百分比的字符串,例如 '50%'。
'100%' 是适合绘图区域的最大半径。
类型:number | string
默认值:0
圆心与弧形终点之间的半径。
可以是数字(以像素为单位)或带有百分比的字符串,例如 '50%'。
'100%' 是适合绘图区域的最大半径。
类型:number | string
默认值:'100%'