horizon.RdInitialise an horizon plot.
horizon(data, ..., utc = TRUE, military = TRUE, bands = 4L, mode = c("offset", "mirror"), normalize = FALSE, scale = 1L, positive_colors = c("white", "midnightBlue"), negative_colors = c("white", "crimson"), interpolation_curve = NULL, ruler = TRUE, zoom = FALSE, transition = FALSE, positive_colors_stops = NULL, negative_colors_stops = NULL, aggregation = NULL, extent = NULL, width = "100%", height = NULL, elementId = NULL)
| data | A |
|---|---|
| ... | Attributes, specified using |
| utc | Whether to use the local timezone ( |
| military | Whether to show time in 24h or 12h (am/pm) format. |
| bands | Number of horizon bands to use. |
| mode | Mode used to represent negative values.
|
| normalize | Whether to normalize all series Y axis to the same extent,
in order to compare series in absolute terms. It defines the behavior of the
dynamic calculation of the max Y, when |
| scale | Set the y-axis scale exponent. Only values > 0 are supported. An exponent of 1 (default) represents a linear Y scale. A function (JS) receives the series ID as input and should return a numeric value. A number sets the same scale exponent for all the series. |
| positive_colors, negative_colors | Colors to use for the positive and negative value bands. |
| interpolation_curve | Interpolation curve function used to draw lines between points. Should be a d3 curve function. A falsy value sets linear interpolation (curveLinear). |
| ruler | Whether to show the ruler. |
| zoom | Whether to enable pointer-based zoom interactions on the chart, along the time (x-axis) dimension. |
| transition | Duration (in milliseconds) of the transitions between data states. |
| positive_colors_stops, negative_colors_stops | Each stop represents an
interpolation ratio and only values between |
| aggregation | A function (JS) to reduce multiple values
to a single number, in case there is more than one |
| extent | JavaScript function or number to set the y-axis maximum absolute value.
By default ( |
| width, height | Must be a valid CSS unit (like |
| elementId | Id of element. |