A serializable description of a pie chart. Build one with
setup_PieConfig() rather than calling this constructor directly.
Usage
PieConfig(
dat_path = NULL,
title = NULL,
origin = NULL,
writer = NULL,
legend_position = "top",
legend_placement = "outside",
values = NULL,
labels = NULL,
label_format = "name",
percent_digits = 1L,
rose_type = NULL,
radius = "75%",
palette = NULL
)Arguments
- dat_path
Optional Character: Path to the data, read at draw time. The serializable alternative to passing
datatodraw().- title
Optional Character: Chart title. Declared here because it is the one property every chart type has;
paletteis not (four take acolormapinstead), and axis labels and margins are cartesian-only.- origin
Optional Named character {"user", "default", "derived"}: Where each value came from, one entry per settable property. Absent on an authored config; written by the interface that resolved it.
- writer
Optional Named character: Which interface wrote the config, as
nameandversion. Absent on an authored config.- legend_position
Character {"top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"}: Legend anchor. Top/bottom anchors use horizontal rows; left/right anchors use a vertical column. Corner anchors align within the top or bottom row.
- legend_placement
Character {"outside", "inside"}: Relation to the plotting area. Outside placement reserves space for the complete legend; inside placement overlays the data. Neither setting adds a missing legend.
- values
Optional Character: Column holding the slice values.
- labels
Optional Character: Column holding the slice labels.
- label_format
Character
{"name", "value", "percent", "name_value", "name_percent"}: Slice label content.- percent_digits
Integer
[0, 6]: Percentage precision.- rose_type
Optional Character {"radius", "area"}: Draw as a Nightingale rose chart, sizing slices by radius or by area.
NULLdraws a plain pie.- radius
Character: Outer radius, as a CSS length or percentage.
- palette
Optional Character: Slice colors, overriding the theme palette for this chart.
NULLuses the theme's.