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

Domain is behind bars for horizontal bar chart. Incorrect z-index #9306

Open
1 task done
apb-reports opened this issue Apr 11, 2024 · 0 comments
Open
1 task done

Domain is behind bars for horizontal bar chart. Incorrect z-index #9306

apb-reports opened this issue Apr 11, 2024 · 0 comments
Labels

Comments

@apb-reports
Copy link

apb-reports commented Apr 11, 2024

If bars are visualized horizontally on the y axis then domain line is partially hidden behind bars.
This is not the case for vertical bars. Test the below by switch y and x axis to see the bug.
Domain needs a higher z-index value

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "A bar chart showing the US population distribution of age groups in 2000.",
  "height": {"step": 17},
  "data": { "url": "data/population.json"},
  "transform": [{"filter": "datum.year == 2000"}],
  "mark": "bar",
  "encoding": {
    "y": {"field": "age","axis": {"domainColor": "red"}},
    "x": {
      "aggregate": "sum", "field": "people",
      "title": "population"
    }
  }
}

Checklist

  • I checked for duplicate issues.
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