Description Usage Arguments Value See Also Examples
Modify plot elements that relate to the axis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | xAxis(c3, show = TRUE, type = "indexed", localtime = NULL,
categories = NULL, max = NULL, min = NULL, padding = list(),
height = NULL, extent = NULL, label = NULL, ...)
## S3 method for class 'c3'
xAxis(c3, show = TRUE, type = "indexed",
localtime = NULL, categories = NULL, max = NULL, min = NULL,
padding = list(), height = NULL, extent = NULL, label = NULL,
...)
yAxis(c3, show = TRUE, inner = NULL, max = NULL, min = NULL,
padding = NULL, inverted = NULL, center = NULL, label = NULL,
...)
## S3 method for class 'c3'
yAxis(c3, show = TRUE, inner = NULL, max = NULL,
min = NULL, padding = NULL, inverted = NULL, center = NULL,
label = NULL, ...)
y2Axis(c3, show = TRUE, inner = NULL, max = NULL, min = NULL,
padding = NULL, inverted = NULL, center = NULL, label = NULL,
...)
## S3 method for class 'c3'
y2Axis(c3, show = TRUE, inner = NULL, max = NULL,
min = NULL, padding = NULL, inverted = NULL, center = NULL,
label = NULL, ...)
|
c3 |
c3 htmlwidget object |
show |
boolean |
type |
character on of 'indexed', timeseries' or 'category' |
localtime |
boolean |
categories |
character vector. Can be used to modify axis labels. Not needed if already defined in data |
max |
numeric set value of axis range |
min |
numeric set value of axis range |
padding |
list with options:
|
height |
integer pixels to set height of axis |
extent |
vector or character function (wrapped in JS()) that returns a vector of values |
label |
can be character or list with options (see c3 axis-x-label):
label position options for horizontal axis are:
label position options for vertical axis are:
|
... |
additional options passed to the axis object |
inner |
boolean show axis inside chart (Y and Y2 axis only) |
inverted |
boolean TRUE will reverse the direction of the axis (Y and Y2 axis only) |
center |
integer or numeric value for center line (Y and Y2 axis only) |
c3
Other c3: RColorBrewer
, c3
,
grid
, legend
,
region
, subchart
,
tooltip
, zoom
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.