spark axis: be sure axis is hidden

This commit is contained in:
pvictor 2020-06-09 17:02:39 +02:00
parent ce1ea38e73
commit ebbaf381d1
1 changed files with 6 additions and 2 deletions

View File

@ -27,8 +27,11 @@
#' @importFrom ggplot2 aes
#'
#' @example examples/spark_box.R
spark_box <- function(data, title = NULL, subtitle = NULL,
color = "#2E93fA", background = "#FFF",
spark_box <- function(data,
title = NULL,
subtitle = NULL,
color = "#2E93fA",
background = "#FFF",
type = c("area", "line", "spline", "column"),
synchronize = NULL,
title_style = NULL,
@ -53,6 +56,7 @@ spark_box <- function(data, title = NULL, subtitle = NULL,
sparkline = list(enabled = TRUE),
group = synchronize
)
spark <- ax_yaxis(spark, show = FALSE)
spark <- ax_colors(spark, color)
if (!is.null(title)) {
if (is.null(title_style))