Skip to content

How to use Data Structures in Floating Bar Chart? #9926

Answered by LeeLenaleee
Udemology asked this question in Q&A
Discussion options

You must be logged in to vote

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:

export function resolveObjectKey(obj, key) {
if (key === emptyString) {
return obj;
}
let pos = 0;
let idx = indexOfDotOrLength(key, pos);
while (obj && idx > pos) {
obj = obj[key.substr(pos, idx - pos)];
pos = idx + 1;
idx = indexOfDotOrLength(key, pos);
}
return obj;
}

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Udemology
Comment options

Answer selected by Udemology
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants