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

Stack bar renders on top of axis. #526

Closed
kanitw opened this issue Jul 21, 2015 · 0 comments · Fixed by #732
Closed

Stack bar renders on top of axis. #526

kanitw opened this issue Jul 21, 2015 · 0 comments · Fixed by #732
Labels
Milestone

Comments

@kanitw
Copy link
Member

kanitw commented Jul 21, 2015

This is probably because we use layer: ‘back’ for axis (so that gridlines appears behind the bar).

{
  "marktype": "bar",
  "encoding": {
    "x": {"name": "Acceleration","type": "Q","aggregate": "avg"},
    "y": {"name": "Cylinders","type": "O"},
    "color": {"name": "Origin","type": "O"}
  },
  "config": {
    "singleHeight": 400,
    "singleWidth": 400,
    "largeBandMaxCardinality": 20
  },
  "data": {"url": "data/cars.json"}
}

pole

But I don’t know why its transpose does not lead to the same problem.
pole

In any case, maybe we could create two axis, one below marks for gridlines and one above marks for axis?

@kanitw kanitw added this to the 0.x patches milestone Jul 21, 2015
kanitw added a commit that referenced this issue Nov 16, 2015
@kanitw kanitw mentioned this issue Nov 16, 2015
@kanitw kanitw closed this as completed Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant