代码之家  ›  专栏  ›  技术社区  ›  Vlad

echarts4r:液体填充颜色

  •  0
  • Vlad  · 技术社区  · 8 年前

    我怎样才能改变颜色 e_liquid ? 以下是我的最新尝试:

    liquid <- data.frame(val = c(0.2, 0.2), 
                         col = c("red", "red"))
    
    liquid %>% 
      e_charts() %>% 
      e_liquid(serie = val, color = col) 
    

    你可以看到它不是红色的。 enter image description here

    1 回复  |  直到 8 年前
        1
  •  1
  •   JohnCoene    8 年前

    抱歉,那 是 一只虫子。

    重新安装 devtools::install_github("JohnCoene/echarts4r") 然后重新运行

    library(echarts4r)
    
    liquid <- data.frame(val = c(0.2, 0.3), 
                         col = c("red", "blue"))
    
    liquid %>% 
        e_charts() %>% 
        e_liquid(serie = val, color = col)
    

    enter image description here