Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize not triggered when hidden #224

Open
ruanxianzhi opened this issue Apr 7, 2020 · 5 comments
Open

Resize not triggered when hidden #224

ruanxianzhi opened this issue Apr 7, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@ruanxianzhi
Copy link

If you hide the chart component with v-show or display:none, resize the window, and then show the chart component. Chart is not shown on the page. The chart would appear if you resize the window again.

Should resize be triggered even when it's hidden? or at least when we show the chart again?

@Furkan-Ozturk
Copy link

Have you found a solution to this problem?

@justfry
Copy link

justfry commented Jun 16, 2020

I have this issue too. Any solutions yet?

@justfry
Copy link

justfry commented Jun 18, 2020

somehow i found what if property "height" is not set, charts is always shown.

@junedchhipa junedchhipa added the bug Something isn't working label Jun 18, 2020
@Aldo111
Copy link

Aldo111 commented Feb 20, 2021

Did you ever find a fix or workaround for this? I'm having this issue now. I'm waiting for some data to load from my API before I show the chart. I can't use v-if because it doesn't seem to respect the height property in chart options if I do, so I need to rely on v-show because it respects the height I give it.
Edit: For now I just put the v-show/v-if on my container around the apex-chart

@DennisBergemann
Copy link

DennisBergemann commented Dec 9, 2021

Hi, for me exists the same if an chart is drawed in an component that is now showed (v-show)
In my way its an menu and if i go to the menupoint with the statistics (blended in with v-show) the diagramms are not drawed, but if i change back to another menupoint and then to this it is allready there. So i think sometimes with v-show (false) it will not drawed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants