Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Opacity argument not applied on density plot #172

Closed
etiennebacher opened this issue Jul 16, 2020 · 2 comments
Closed

Opacity argument not applied on density plot #172

etiennebacher opened this issue Jul 16, 2020 · 2 comments

Comments

@etiennebacher
Copy link
Contributor

I would like to remove the colored area under a density curve, and I think areaStyle is the appropriate argument for that (not sure though, I started to use this package today). However, changing opacity from 0 to 1 doesn't seem to have an effect on the plot:

library(echarts4r)

df <- data.frame(
    x = 1:100,
    y = rnorm(100, 20, 12)
)

df %>%
    e_charts() %>% 
    e_density(y, areaStyle = list(opacity = 1))

# Different opacity but same result
df %>%
    e_charts() %>% 
    e_density(y, areaStyle = list(opacity = 0))

Is there a reason for that? Am I missing something?

echarts4r 0.3.2

@JohnCoene
Copy link
Owner

JohnCoene commented Jul 16, 2020

Bonjour Etienne,

No you're not missing anything: j'ai push un fix, la version Github permet de faire ça maintenant. Merci :)

@etiennebacher
Copy link
Contributor Author

Parfait, merci 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants