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

Charts not visible in other tabs! #2

Open
Den4ik1992 opened this issue Feb 28, 2023 · 6 comments
Open

Charts not visible in other tabs! #2

Den4ik1992 opened this issue Feb 28, 2023 · 6 comments

Comments

@Den4ik1992
Copy link

Den4ik1992 commented Feb 28, 2023

Charts are not rendered, only the chart that is at the active tab is displayed, if I switch to the other tabs the charts remain invisible. I can make them visible if I change the data provider e.g. select another date.

Can I fix this error somehow ?

2023-02-28-10-50-37 (1)

Thanks in advance ;)

@poirazis
Copy link
Owner

Hey @Den4ik1992
Can you show me the component hierarchy of this ? A screenshot of the component tree on the left.

@Den4ik1992
Copy link
Author

comp

@Den4ik1992
Copy link
Author

Have you perhaps already found a solution,
is there any way I can fix the error myself maby a litte embed JavaScript code to reload the charts, or do you have any ideas ?

@poirazis
Copy link
Owner

poirazis commented Mar 14, 2023

Hey @Den4ik1992
i haven't found a solution to this, as this seems a limitation of the chart component.
You have the "On Tab Change" event, have you tried triggering something there that would cause a refresh ?
Maybe refreshing the DP on Tab Change ? or changing a State App variable that the chart is bound to ? ( maybe a dummy variable to force a refresh ? )

@Den4ik1992
Copy link
Author

Den4ik1992 commented May 9, 2023

Forcing or triggering a refresh works for me, then the chart graphic is re-rendered and it becomes visible. Thanks for your tip !

I have another improvement suggestion that would be nice!
I have very many tabs with supertabs on one page and all 10 tabs are loaded/rendered at the same time when loading the page first time.

Would it be possible that when opening the page only the main tab (initial tab index) is rendered and the others only when the tab is activated.

If all tabs are loaded at the same time it can take up to 1 min until everything is loaded from the database.

It would be really cool if this could be implemented somehow.

2023-05-09 12_09_09-Window

@JCV67
Copy link

JCV67 commented Jun 12, 2023

Hello @poirazis
Something similar is happening to me while using Fullcalendar under Supertabs. The first tab works but the others don't. I found out that when I zoom in, the tab content shows up. Looks like the content of the tabs collapses onto a single line.
tabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants