Item Label Position
Item Label Position is used to specify the position of item labels on a chart. Four properties are used to specify the position.
Properties
Property | Name | Type | Description |
Item Label Anchor | itemLabelAnchor | String | An item label anchor is used by a renderer to calculate a fixed point (the item label anchor point) relative to a data item on a chart. This point becomes a reference point that an item label can be aligned to. There are 25 anchors available. The numbers 1 to 12 are used and roughly correspond to the positions of the hours on a clock face. In addition, positions are defined relative to an "inside" ring and an "outside" ring - see the below image for an illustration. With 12 points on the inside circle, 12 points on the outside circle, plus a "center" anchor point, in all there are 25 possible anchor points. For some renderers (e.g. Bar Renderer), the circular arrangement of anchor points doesn't make sense, so the renderer is free to modify the anchor positions. |
Text Anchor | textAnchor | String | A point relative to the item label text which will be aligned with the item label anchor point above. Available anchor values are Center, Center Left, Center Right, Top Center, Top Left, Top Right, Bottom Center, Bottom Left, Bottom Right, Baseline Center, Baseline Left, Baseline Right, Half Ascent Center, Half Ascent Left, Half Ascent Right. |
Rotation Anchor | rotationAnchor | String | Another point somewhere on the item label about which the text will be rotated (if there is a rotation). Available anchor values are Center, Center Left, Center Right, Top Center, Top Left, Top Right, Bottom Center, Bottom Left, Bottom Right, Baseline Center, Baseline Left, Baseline Right, Half Ascent Center, Half Ascent Left, Half Ascent Right. |
Angle | angle | Float | Specifies the amount of rotation about the rotation point. |
Was this page helpful?