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

Axis "description" is not overriding default aria-label #9432

Open
ritacosta0 opened this issue Sep 11, 2024 · 0 comments · May be fixed by vega/vega#3991
Open

Axis "description" is not overriding default aria-label #9432

ritacosta0 opened this issue Sep 11, 2024 · 0 comments · May be fixed by vega/vega#3991
Labels

Comments

@ritacosta0
Copy link

Bug Description

The description property with alt.Axis is not overriding the default aria-label. Below is the chart spec similar to what I'm trying to achieve. To confirm that the description is not overriding the default aria-label I'm inspecting the chart's code on the browser. For this example, the aria-label for the x-axis is:

image

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-a"
  },
  "datasets": {
    "data-a": [
      {
        "a": "A",
        "b": 28
      },
      {
        "a": "B",
        "b": 55
      },
      {
        "a": "C",
        "b": 43
      },
      {
        "a": "D",
        "b": 91
      },
      {
        "a": "E",
        "b": 81
      },
      {
        "a": "F",
        "b": 53
      },
      {
        "a": "G",
        "b": 19
      },
      {
        "a": "H",
        "b": 87
      },
      {
        "a": "I",
        "b": 52
      }
    ]
  },
  "encoding": {
    "x": {
      "axis": {
        "description": "test",
        "labelAngle": 0
      },
      "field": "a",
      "type": "nominal"
    },
    "y": {
      "field": "b",
      "type": "quantitative"
    }
  },
  "mark": {
    "type": "bar"
  }
}
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