I want to change the tooltip content for lines drawn using echarts4r::e_mark_line() without changing existing series' names. I also want the tooltip content for other elements in the chart to remain the same. By default, the lines inherit the series name in the tooltip. I want to change this to something else.
Here is an example where the tooltip for the line shows "y" for the name of the series.
data.frame(x = c("a"), y = c(5)) |>
echarts4r::e_charts(x = x) |>
echarts4r::e_bar(serie = y) |>
echarts4r::e_mark_line(
data = list(
yAxis = 3
)
) |>
echarts4r::e_tooltip()

I was able to achieve the result I was looking for by passing a custom formatter function that alters the tooltip for the markLine component and reconstructs the default tooltip for the bar: