Goal:
In my plot, I would like to have different colors for the border and the area of an area band. The plot was created with echarts4r
using the e_band2()
function.
Problem:
In the documentation I read that area bands can be customized through the itemStyle
argument of the function. This works fine for all the other options (borderWidth
, borderType
, shadowBlur
, shadowColor
) I tested, but not for borderColor
. However, the borderColor
option seems to work at least partially, because the symbol in the legend has the desired border color, but not the area band in the plot.
Does anyone know if there is another way to change the border color or is this a bug?
Reprex:
library(echarts4r)
library(dplyr)
data(EuStockMarkets)
as.data.frame(EuStockMarkets) |>
dplyr::slice_head(n = 200) |>
dplyr::mutate(day = 1:dplyr::n()) |>
e_charts(day) |>
e_band2(DAX, SMI, itemStyle = list(
borderWidth = 1,
color = "green",
borderColor = "red"
)) |>
e_y_axis(scale = TRUE)