LabelList
Properties
- dataKeyString | Number | Function - 展示 label 值对应的数据的 key。 
- valueAccessorFunctionoptional - 获取label值的方法 
- contentReactElement | Functionoptional - 定制每个 label 展示的内容。如果值为 React element,会克隆这个元素来渲染每个 label 的内容。如果值为函数,会调用这个函数来生成每个 label 的内容。 - 格式: - <LabelList content={<CustomizedLabel external={external} />} /> <LabelList content={renderLabel} />
- position"top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"optional - 每个label相对于它的可视区域的位置 
- offsetNumber - 相对于"设置位置"的偏移量 - 默认值:5 
- formatterFunctionoptional - 标注值的格式化方法,只有一个参数:标注值 
- dataNumberoptional - 图表的输入数据 
- clockWiseStringoptional - 用于极坐标系图表中判断 label 可视区域的参数 - 默认值:false 
- idStringoptional - 唯一的id,会用于生成内部的clip path id 等,建议使用SSR的时候设置这个属性。