Outside-label alignment for pie and rose charts. Extends LabelOption.
Corresponds to PieLabelOption in src/chart/pie/PieSeries.ts.
ECharts docs: https://echarts.apache.org/en/option.html#series-pie.label
Usage
PieLabelOption(
show = NULL,
position = NULL,
distance = NULL,
rotate = NULL,
offset = NULL,
formatter = NULL,
silent = NULL,
precision = NULL,
value_animation = NULL,
min_margin = NULL,
text_style = NULL,
align_to = NULL,
edge_distance = NULL,
bleed_margin = NULL,
distance_to_label_line = NULL
)Arguments
- show
Optional Logical: Whether to show the label.
- position
Optional Character {"top", "left", "right", "bottom", "inside", "insideLeft", "insideRight", "insideTop", "insideBottom", "insideTopLeft", "insideBottomLeft", "insideTopRight", "insideBottomRight", "outside"} or Numeric: Label position.
"bottom","inside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","outside".- distance
Optional Numeric: Distance from the element.
- rotate
Optional Numeric: Rotation angle in degrees.
- offset
Optional Numeric: Offset
c(x, y)in pixels.- formatter
Optional Character or function: Label text formatter.
- silent
Optional Logical: Whether the label is silent.
- precision
Optional Numeric or Character {"auto"}: Numeric precision.
- value_animation
Optional Logical: Whether to animate value changes.
- min_margin
Optional Numeric
[0, Inf): Minimum margin between labels.- text_style
Optional TextStyle: Text appearance.
- align_to
Optional Character {"none", "labelLine", "edge"}: Outside-label alignment.
- edge_distance
Optional Numeric or Character: Distance from the plot edge.
- bleed_margin
Optional Numeric: Space outside labels when not edge-aligned.
- distance_to_label_line
Optional Numeric: Gap between label and guide line.
Examples
PieLabelOption(align_to = "edge", edge_distance = 8)#> <rtemis.draw::PieLabelOption>
#> @ show : NULL
#> @ position : NULL
#> @ distance : NULL
#> @ rotate : NULL
#> @ offset : NULL
#> @ formatter : NULL
#> @ silent : NULL
#> @ precision : NULL
#> @ value_animation : NULL
#> @ min_margin : NULL
#> @ text_style : NULL
#> @ align_to : chr "edge"
#> @ edge_distance : num 8
#> @ bleed_margin : NULL
#> @ distance_to_label_line: NULL