How to use Data Structures in Floating Bar Chart? #9926
-
I am currently struggling with Data Structures in a Floating Bar Chart. I am familiar with Data Structures. But I could not figure out how it would work specifically for the floating bar chart. For example my Data Structure is like this. How would I be able to specify this on the x-axis specifically the start and end value? Is this possible as of now? Like this: Is it possible to use? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is not supported. The code expects just a single string as input for the yAxisKey. The way the object gets checked can be seen here: Chart.js/src/helpers/helpers.core.js Lines 303 to 315 in 838d40b So you will need to have your floating config already in the object like so: data: [{test: 'a', tt: [5,3]}, {test: 'b', tt: [0,4]}, {test: 'c', tt: [-3,9]}] Fiddle: https://jsfiddle.net/Leelenaleee/67tvkgwm/2/ EDIT: |
Beta Was this translation helpful? Give feedback.
This is not supported. The code expects just a single string as input for the yAxisKey. The way the object gets checked can be seen here:
Chart.js/src/helpers/helpers.core.js
Lines 303 to 315 in 838d40b
So you will need to have your floating config already in the object like so: