Q: How to associate several series with one Yaxis in multi-Yaxis charts #4737
Unanswered
evil-shrike
asked this question in
Q&A
Replies: 1 comment
-
No ideas? |
Beta Was this translation helpful? Give feedback.
0 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.
-
I'm trying to create a chart with several series per Yaxis. When I have two series and only one Y-axis, it works as expected.
Please the example:
I'm using Vue3 wrapper.
https://codesandbox.io/s/vue-basic-example-forked-kdh42q?file=/src/components/Chart.component.vue
Note the names of a series are used in legend to identify the series.
Now I want to add another pair of graphs at the same chart with another Y-axis on the right.
How should I do it?
Here's what I tried. I added another yaxis:
As we have to (I guess) explicitly associate series with an axis, it should be named. But how to create several series with the same name?
I can create a series per axis:
it works. But as I need several series per axis.
As soon as I add another data series with the same name it fails
(TypeError: Cannot read properties of undefined (reading 'push')).
Unfortunately the doc says nothing about named series - https://apexcharts.com/docs/series/
Beta Was this translation helpful? Give feedback.
All reactions