Visualizer chart to be re-drawn if page is not refreshed and only part of content is being re-rendered using AJAX #708
Labels
enhancement
Request to improve or optimize an existing feature or functionality in the project
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.
The text was updated successfully, but these errors were encountered: