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

[BUG] Bar charts with horizontal display have wrong axis labels #43

Open
EDM115 opened this issue Mar 19, 2024 · 0 comments
Open

[BUG] Bar charts with horizontal display have wrong axis labels #43

EDM115 opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@EDM115
Copy link
Contributor

EDM115 commented Mar 19, 2024

The labels of X and Y aren't swapped

image

Replication dev config
{
  "staticFilters": [
    {
      "type": "out",
      "values": [
        "_PRENOMS_RARES"
      ],
      "field": {
        "key": "preusuel",
        "type": "string",
        "x-originalName": "preusuel",
        "x-cardinality": 34230,
        "x-refersTo": null,
        "title": "Prénom usuel",
        "x-capabilities": {
          "textAgg": true
        },
        "label": "Prénom usuel"
      }
    }
  ],
  "datasets": [
    {
      "href": "http://localhost:5888/data-fair/api/v1/datasets/prenom-france-1900-2017",
      "title": "Prénoms attribués aux enfants nés en France entre 1900 et 2019",
      "id": "prenom-france-1900-2017"
    }
  ],
  "chartType": {
    "type": "bar",
    "split": false,
    "horizontal": true
  },
  "dataType": {
    "type": "countBased",
    "dynamicSort1": false,
    "sort": "-count",
    "groupBy": {
      "type": "value",
      "field": {
        "key": "preusuel",
        "type": "string",
        "x-originalName": "preusuel",
        "x-cardinality": 34230,
        "x-refersTo": null,
        "title": "Prénom usuel",
        "x-capabilities": {
          "textAgg": true
        },
        "label": "Prénom usuel"
      },
      "size": 10
    },
    "dynamicSort2": false,
    "secondSort": "-count",
    "secondGroupBy": {
      "type": "value",
      "field": {
        "key": "nombre",
        "type": "integer",
        "x-originalName": "nombre",
        "x-cardinality": 7252,
        "x-refersTo": null,
        "title": "Nombre de naissances",
        "label": "Nombre de naissances"
      },
      "size": 10
    }
  },
  "colorscheme": {
    "type": "qualitative",
    "name": "Paired"
  },
  "title": "",
  "dynamicFilters": []
}
@EDM115 EDM115 added the bug Something isn't working label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant