Skip to content

Opacity argument not applied on density plot #172

Description

@etiennebacher

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions