Learn R Programming

c3 (version 0.3.2)

c3_pie: Pie Charts

Description

C3 Pie Charts

Usage

c3_pie(c3, show = TRUE, threshold = NULL, format = NULL, expand = TRUE, ...)

Value

c3

Arguments

c3

c3 htmlwidget object

show

boolean show labels

threshold

numeric proportion of segment to hide label

format

character label js function, wrap character or character vector in JS()

expand

boolean expand segment on hover

...

additional values passed to the pie label object

Examples

Run this code
data.frame(red = 20, green = 45, blue = 10) %>%
  c3() %>%
  c3_pie()

Run the code above in your browser using DataLab