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

Setting y-axis title in boxplot doesn't work as expected #9223

Open
1 task done
jairideout opened this issue Jan 8, 2024 · 0 comments · May be fixed by #9483
Open
1 task done

Setting y-axis title in boxplot doesn't work as expected #9223

jairideout opened this issue Jan 8, 2024 · 0 comments · May be fixed by #9483
Labels

Comments

@jairideout
Copy link

Bug Description

Vega Editor example

In the boxplot spec below, setting the y-axis title to "new title" results in the title being rendered as "shannon, new title, new title". In this example, "shannon" is the y channel's field name.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.16.3.json",
  "data": {"name": "data-3e0a383e77b256d89537f7833ea143a1"},
  "datasets": {
    "data-3e0a383e77b256d89537f7833ea143a1": [
      {"Cage": "Cage 1", "Label": "A", "shannon": 5.176328176848553},
      {"Cage": "Cage 1", "Label": "B", "shannon": 5.199155476975141},
      {"Cage": "Cage 1", "Label": "C", "shannon": 4.974772313648122},
      {"Cage": "Cage 2", "Label": "D", "shannon": 5.143506930208677},
      {"Cage": "Cage 2", "Label": "E", "shannon": 4.767446832456491},
      {"Cage": "Cage 2", "Label": "F", "shannon": 5.088549164893167}
    ]
  },
  "encoding": {
    "x": {"axis": {"title": "Cage"}, "field": "Cage", "type": "nominal"},
    "y": {
      "axis": {"title": "new title"},
      "field": "shannon",
      "type": "quantitative"
    }
  },
  "mark": {"size": 45, "type": "boxplot"},
  "height": "container",
  "width": "container"
}
Screenshot 2024-01-08 at 3 17 59 PM

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

Successfully merging a pull request may close this issue.

1 participant