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

Bar charts with null and empty string categories produces odd results #9428

Open
1 task done
rlm1023 opened this issue Sep 5, 2024 · 0 comments
Open
1 task done
Labels

Comments

@rlm1023
Copy link

rlm1023 commented Sep 5, 2024

Bug Description

Bar charts attempt to stack null and empty string categories on their y-axis, but still create distinct x-axis categories for them, leading to odd charts.

{
  "data": {
    "values": [{"a": null, "b": 28}, {"a": "", "b": 55}, {"a": "C", "b": 43}]
  },
  "mark": "bar",
  "encoding": {
    "x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
    "y": {"field": "b", "type": "quantitative"}
  }
}

Produces:
chart

Repro

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