ZingChart: Does ZingChart support WebSockets?

We support built-in browser-supported WebSockets. You can reference who supports WebSockets here.

If any of our default feed options (view options here) are not suitable for your environment, the API Methods should allow you to modify the dataset of your chart whenever data comes in through the websocket. Internally, our feed and websocket options are coded using the external API we have provided.

To provide a better understanding into how the websocket feature in our library is implemented, I have created a small demo using our own internal server using websockets :

Notice that I am using the API Method 'appendseriesvalues' to modify my chart data whenever the websocket emits the 'onmessage' event. This approach will allow you to use any other method available (view all methods).

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us