Description Usage Arguments See Also Examples
Pass options to pie
type.
1 2 3 |
p |
a chartist object. |
percent |
convert to percent. |
donut |
set to |
showLabel |
set to |
startAngle |
start angle of the pie chart in degrees. |
total |
By specifying a total value, the sum of the values in the series must be this total. |
donutWidth |
donut width. |
labelDirection |
label direction takes |
labelOffset |
numeric to offset labels. |
width |
set fixed width in pixels or percent (i.e.: |
height |
set fixed height in pixels or percent
(i.e.: |
low |
lower bound of value. |
high |
higher bound of value. |
chartPadding |
padding around chart div. |
... |
additional options. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | mtcars$models <- rownames(mtcars)
mtcars[1:5,] %>%
chart_ist(type = "pie") %>%
add_ist(disp) %>%
pieopt_ist(startAngle = 270,
donut = TRUE,
donutWidth = 50,
showLabel = FALSE)
mtcars[1:5,] %>%
chart_ist(x = models, type = "pie") %>%
add_ist(disp) %>%
pieopt_ist(labelDirection = "explode",
labelOffset = 100,
chartPadding = 50)
mtcars[1:5,] %>%
chart_ist(type = "pie") %>%
add_ist(disp) %>%
pieopt_ist(percent = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.