Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cannot change opacity of area from config #9548

Open
ZacharyBys opened this issue Feb 27, 2025 · 0 comments
Open

Cannot change opacity of area from config #9548

ZacharyBys opened this issue Feb 27, 2025 · 0 comments
Labels

Comments

@ZacharyBys
Copy link
Contributor

Bug Description

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "width": 300,
  "height": 200,
  "data": {"url": "data/unemployment-across-industries.json"},
  "mark": {"type": "area" },
  "encoding": {
    "x": {
      "timeUnit": "yearmonth", "field": "date",
      "axis": {"format": "%Y"}
    },
    "y": {
      "aggregate": "sum", "field": "count",
      "title": "count"
    }
  },
  "config": {
    "area": {
        "line": true,
        "opacity": 0.1
    },
    "style": {}
  }
}

Area doesn't consume opacity changes from config, this only works if opacity is set directly in mark

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

No branches or pull requests

1 participant