LabelList
Parent Components
Properties
dataKeyString | Number | Function
The key of a group of label values in data.
valueAccessorFunctionoptional
The accessor function to get the value of each label.
contentReactElement | Functionoptional
If set a React element, the option is the customized react element of rendering each label. If set a function, the function will be called to render each label content.
FORMAT:
<LabelList content={<CustomizedLabel external={external} />} /> <LabelList content={renderLabel} />Examples:
position"top" | "left" | "right" | "bottom" | "inside" | "outside" | "insideLeft" | "insideRight" | "insideTop" | "insideBottom" | "insideTopLeft" | "insideBottomLeft" | "insideTopRight" | "insideBottomRight" | "insideStart" | "insideEnd" | "end" | "center"optional
The position of each label relative to it view box。
offsetNumber
The offset to the specified "position"
DEFAULT: 5
formatterFunctionoptional
The formatter function of label value which has only one parameter - the value of label.
clockWiseStringoptional
The parameter to calculate the view box of label in radial charts.
DEFAULT: false
idStringoptional
The unique id of this component, which will be used to generate unique clip path id internally. This props is suggested to be set in SSR.