How to show loading in vis.js chart

For the first time, access the vis.js. The user browser needs to download the vis.js. library It will take some time to show the schedule. I am wondering how to display a message or animated image before the graph is fully loaded.

Once the chart is fully loaded, give a message or image to fadeOut.

Thanks in advance.

+4
source share
1 answer

You should use stabilization events, as shown in the example in the vis.js documentation. It gives you an example of how to implement the loading bar, but you can also use this mechanism to implement other solutions.

+1
source

Source: https://habr.com/ru/post/1650619/


All Articles