c3_gauge {c3} | R Documentation |
Gauge Charts
Description
Create simple Gauge Charts
Usage
c3_gauge(c3, label = NULL, min = 0, max = 100, units = NULL,
width = NULL, pattern = c("#FF0000", "#F97600", "#F6C600",
"#60B044"), threshold = list(unit = "value", max = 100, values = c(30,
60, 90, 100)), height = NULL, ...)
Arguments
c3 |
c3 htmlwidget object |
label |
list with options:
|
min |
numeric |
max |
numeric |
units |
character appended to numeric value |
width |
integer pixel width of the arc |
pattern |
character vector or palette of colors |
threshold |
list with options:
|
height |
integer pixel height of the chart. Proportion of gauge never changes so height scales with width despite this setting. |
... |
additional values passed to the gauge, color and size objects |
Value
c3
Examples
data.frame(data=10) %>%
c3() %>%
c3_gauge(title = 'Colors')
[Package c3 version 0.3.0 Index]