极坐标系中 "position" 的参数含义

    Label - 图2

    显示数据格式

    父组件

    Properties

    • Function optional

    标注值的格式化方法,只有一个参数:标注值

    • value String | Number optional

    标注值

    格式:

    • "top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center" optional

    label相对于可视区域的位置

    相对于"设置位置"的偏移量

    • String | Number optional

    标注值

    格式:

    定制 Label 展示的内容。如果值为 React element,会克隆这个元素来渲染 Label 的内容。如果值为函数,会调用这个函数来生成 Label 的内容。

    格式:

    • id String optional

    唯一的id,会用于生成内部的clip path id 等,建议使用SSR的时候设置这个属性。