【问题标题】:echarts4r: how to match line type with legendecharts4r:如何将线型与图例匹配
【发布时间】:2020-02-28 03:39:14
【问题描述】:

图表中的线型如何与图例匹配?

library(echarts4r)

df <- data.frame(
  x = seq(50),
  y = rnorm(50, 10, 3),
  z = rnorm(50, 10, 3)
)

df %>% 
  e_charts(x) %>% 
  e_line(y, showSymbol = FALSE, lineStyle = list(type = "dashed")) %>%
  e_line(z, showSymbol = FALSE, lineStyle = list(type = "dotted"))

在输出中,图例显示带圆圈的线条 - 如果显示实际的线条类型会更好,或者至少没有圆圈,例如:---- y,- - - - z

【问题讨论】:

    标签: r data-visualization echarts


    【解决方案1】:

    显然,图例无法匹配线型:https://github.com/JohnCoene/echarts4r/issues/188

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-17
      • 1970-01-01
      • 2021-08-09
      • 1970-01-01
      • 2020-07-03
      • 2013-08-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多