显示数据格式
父组件
Properties
- String | Number
展示 label 值对应的数据的 key。
- valueAccessor Function optional
获取label值的方法
- ReactElement | Function optional
定制每个 label 展示的内容。如果值为 React element,会克隆这个元素来渲染每个 label 的内容。如果值为函数,会调用这个函数来生成每个 label 的内容。
<LabelList content={renderLabel} />
示例:
- "top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center" optional
每个label相对于它的可视区域的位置
- offset Number
相对于"设置位置"的偏移量
默认值:5
- Function optional
- data Number optional
图表的输入数据
默认值:5
用于极坐标系图表中判断 label 可视区域的参数
默认值:1.5
- String optional