How to parse data for horizontal bar chart? #9267
Unanswered
lucapollani
asked this question in
Q&A
Replies: 1 comment 3 replies
-
you need to define |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Starting from this example: Data structures - parsing
I'm using the same data format of the example but trying to display it into an horizontal bar chart.
This is the code:
Differently from the documentation I've switched yAxisKey to xAxisKey in parsing and then I've set the indexAxis to y in options.
The result is an empty graph, but as far as I see the axis are scaled correctly so I suppose it's not completely wrong.
Here a codesandbox reproducing the behavior: https://codesandbox.io/s/vigilant-lake-3hk50?file=/index.html
Is there something wrong in my code?
Beta Was this translation helpful? Give feedback.
All reactions