Description Usage Arguments Examples
View source: R/highcharts-api.R
The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects. See the Axis object for programmatic access to the axis.
1 |
hc |
A |
... |
Arguments defined in https://api.highcharts.com/highcharts/yAxis. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | highchart() %>%
hc_add_series(
data = c(7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6),
type = "spline"
) %>%
hc_yAxis(
title = list(text = "y Axis at right"),
opposite = TRUE,
alternateGridColor = "#FAFAFA",
minorTickInterval = "auto",
minorGridLineDashStyle = "LongDashDotDot",
showFirstLabel = FALSE,
showLastLabel = FALSE,
plotBands = list(
list(
from = 13,
to = 17,
color = "rgba(100, 0, 0, 0.1)",
label = list(text = "This is a plotBand")
)
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.