JohnCoene / echarts4r

🐳 ECharts 5 for R
http://echarts4r.john-coene.com/
Other
585 stars 82 forks source link

radar chart: area style color #576

Open RKonstantinR opened 9 months ago

RKonstantinR commented 9 months ago

How can I set a different color for an areaStyle for each series?

I try this code, but for each graph one color is set:

df <- data.frame(
  x = LETTERS[1:5],
  y = runif(5, 1, 5),
  z = runif(5, 3, 7)
)

df |>
  e_charts(x) |>
  e_radar(y, max = 7, 
          itemStyle=list(color="green"),
          areaStyle = list()) |>
  e_radar(z,
          itemStyle=list(color="red"),
          areaStyle = list()) |>
  e_tooltip(trigger = "item")

ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅