spark axis: be sure axis is hidden
This commit is contained in:
parent
ce1ea38e73
commit
ebbaf381d1
|
@ -27,8 +27,11 @@
|
||||||
#' @importFrom ggplot2 aes
|
#' @importFrom ggplot2 aes
|
||||||
#'
|
#'
|
||||||
#' @example examples/spark_box.R
|
#' @example examples/spark_box.R
|
||||||
spark_box <- function(data, title = NULL, subtitle = NULL,
|
spark_box <- function(data,
|
||||||
color = "#2E93fA", background = "#FFF",
|
title = NULL,
|
||||||
|
subtitle = NULL,
|
||||||
|
color = "#2E93fA",
|
||||||
|
background = "#FFF",
|
||||||
type = c("area", "line", "spline", "column"),
|
type = c("area", "line", "spline", "column"),
|
||||||
synchronize = NULL,
|
synchronize = NULL,
|
||||||
title_style = NULL,
|
title_style = NULL,
|
||||||
|
@ -53,6 +56,7 @@ spark_box <- function(data, title = NULL, subtitle = NULL,
|
||||||
sparkline = list(enabled = TRUE),
|
sparkline = list(enabled = TRUE),
|
||||||
group = synchronize
|
group = synchronize
|
||||||
)
|
)
|
||||||
|
spark <- ax_yaxis(spark, show = FALSE)
|
||||||
spark <- ax_colors(spark, color)
|
spark <- ax_colors(spark, color)
|
||||||
if (!is.null(title)) {
|
if (!is.null(title)) {
|
||||||
if (is.null(title_style))
|
if (is.null(title_style))
|
||||||
|
|
Loading…
Reference in New Issue