-
Couldn't load subscription status.
- Fork 133
Description
Demo: https://codepen.io/lukaszflorczak/pen/yrpWgZ
I have a chart like that in my project. I have 6 series of data: 1-4 use common y-axis on the left and 5-6 use common y-axis on the right. I also have buttons to disable/enable each series.
const initialYaxis = [
{ seriesName: 'wideContacts', show: true },
{ seriesName: 'wideContacts', show: false },
{ seriesName: 'wideContacts', show: false },
{ seriesName: 'wideContacts', show: false },
{ seriesName: 'netValue', opposite: true, show: true },
{ seriesName: 'netValue', opposite: true, show: false }
]Problem 1
If I disable for example the first series I need to change params of y-axis for series 2-4 because the first series y-axis is not visible. In the demo, you can see prepareYaxis() method for this. And it looks that it works. Unfortunately, if I disable any series I can't enable it again.
In this issue: apexcharts/apexcharts.js#366 I got a suggestion to use showAlways option, but I'm doing something wrong or it doesn't work when I toggle the data series.
I tried to use render() method, but it doesn't work (exist?). In the local environment, I use vue-apexcharts@1.3.4 and apexcharts@3.6.7.
How should I do charts like that? Where is the problem?
Problem 2
It's not so important for me at this moment, and maybe it's related to problem 1, but... At the beginning I see all data in the tooltip together:
But if I disable one of the series I see the separate tooltip for each chart/series:
I mentioned it here: apexcharts/apexcharts.js#367 before.
PS. I hope it's not a problem that I start a new issue. But I thought it would be better to start a new one in vue-apexcharts repo because maybe some of those problems are specific just for the Vue version.

