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

Visualizer chart to be re-drawn if page is not refreshed and only part of content is being re-rendered using AJAX #708

Open
vytisbulkevicius opened this issue Jun 1, 2020 · 2 comments
Labels
enhancement Request to improve or optimize an existing feature or functionality in the project

Comments

@vytisbulkevicius
Copy link
Contributor

Description:

Some clients are using additional plugins or have they website build in SPA method that allows refreshing part of the content (using AJAX) and in such case Visualizer charts are not being rendered. For the Visualizer chart to be rendered it's needed to refresh the page.

To replicate this behavior - add any Visualizer chart to the page and try reloading the content DIV, for example, using jQuery like this:

jQuery("#contentDiv").load(location.href + " #contentDiv");

where contentDiv is one of the parent DIVs in which Visualizer chart(s) are rendered. Other content will be re-rendered but Visualizer charts are not being drawn.

The client reported this on this page where he's using DIVI builder and have this feature on his website (navigating using pagination re-renders only content and not the whole page):
Test page: https://decisivmarketplace.com/test-page/ (might be removed but this can be easily recreated on any page where Visualizer chart is visible using browser console).

Alternatives:

I haven't found an alternative to make it work and charts to be drawn when page is not refreshed.

@vytisbulkevicius vytisbulkevicius added the enhancement Request to improve or optimize an existing feature or functionality in the project label Jun 1, 2020
@stefan-cotitosu
Copy link

stefan-cotitosu commented Sep 11, 2020

+1 even if the data are fetched by Visualizer live(schedule options) the page needs to be refreshed so the new data gets displayed - https://secure.helpscout.net/mailbox/dd8c59516d047fb2/chats/9697a3e7-a4a8-4132-906a-d6a7b5b26f3d

(this comment was added just to notify the customer in case something in the plugin is changed in this regard)

@stefan-cotitosu
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request to improve or optimize an existing feature or functionality in the project
Projects
None yet
Development

No branches or pull requests

2 participants