You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
in V4 I was used to create multiple axis while iterating over an array, like this: [axisId1, axisId2].forEach(axisId => { chart.axis(value_${axisId}, {axis options here...})
with data like [{timestamp: xx-xx, value_axisId1: 1}, {timestamp: xx-xx, value_axisId2: 0.5}, {timestamp: yy-yy, value_axisId1: 1}, {...and do on}]
This workd like charm and I got two y-axis, one on the left and one on the right.
Number of axis is variable depending on the users data selection in the app.
I'm currently migrating our code from v4 to latest v5 and I can't figure out how to create several y axis similar to the way shown above. I found one example for multiaxis but this doesn't help me in this case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
in V4 I was used to create multiple axis while iterating over an array, like this:
[axisId1, axisId2].forEach(axisId => { chart.axis(
value_${axisId}, {axis options here...})
with data like [{timestamp: xx-xx, value_axisId1: 1}, {timestamp: xx-xx, value_axisId2: 0.5}, {timestamp: yy-yy, value_axisId1: 1}, {...and do on}]
This workd like charm and I got two y-axis, one on the left and one on the right.
Number of axis is variable depending on the users data selection in the app.
I'm currently migrating our code from v4 to latest v5 and I can't figure out how to create several y axis similar to the way shown above. I found one example for multiaxis but this doesn't help me in this case.
Anyone you has an idea how solve this?
Beta Was this translation helpful? Give feedback.
All reactions