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

Boxplot disappear when there is one value per group #8338

Closed
kanitw opened this issue Aug 3, 2022 · 1 comment · Fixed by #8339
Closed

Boxplot disappear when there is one value per group #8338

kanitw opened this issue Aug 3, 2022 · 1 comment · Fixed by #8339

Comments

@kanitw
Copy link
Member

kanitw commented Aug 3, 2022

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "A simple bar chart with embedded data.",
  "data": {
    "values": [
      {"a": "A", "b": 28}, {"a": "A", "b": 30}, {"a": "B", "b": 55}
    ]
  },
  "mark": "boxplot",
  "encoding": {
    "x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
    "y": {"field": "b", "type": "quantitative"}
  }
}

image

Nothing shows up for B.

This is similiar to #3488, but is the same problem for boxplot.

@kanitw kanitw added the Bug 🐛 label Aug 3, 2022
@kanitw kanitw changed the title Boxplot disappear when there is one value per group. Boxplot disappear when there is one value per group Aug 3, 2022
@kanitw kanitw added this to the 2022 Aug Polishes milestone Aug 3, 2022
@joelostblom
Copy link
Contributor

There is a somewhat similar issue in #8126 where the median boxplot lines disappears with many identical values, just in case anything here could be applied to fix that too.

kanitw added a commit that referenced this issue Apr 8, 2024
Fixes #8338, fixes #8126

---------

Co-authored-by: GitHub Actions Bot <vega-actions-bot@users.noreply.github.com>
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.

2 participants