vega-lite icon indicating copy to clipboard operation
vega-lite copied to clipboard

Boxplot disappear when there is one value per group

Open kanitw opened this issue 1 year ago • 1 comments

{
  "$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 https://github.com/vega/vega-lite/issues/3488, but is the same problem for boxplot.

kanitw avatar Aug 03 '22 00:08 kanitw

There is a somewhat similar issue in https://github.com/vega/vega-lite/issues/8126 where the median boxplot lines disappears with many identical values, just in case anything here could be applied to fix that too.

joelostblom avatar Aug 05 '22 12:08 joelostblom