Ngx-charts: Realtime in demo is broken on line/area charts

Created on 18 Nov 2016  路  5Comments  路  Source: swimlane/ngx-charts

Bug Easy Demos

Most helpful comment

How do I pass real-time data from socket.io. I can't see any working example in the demo page. I appreciate if you give some example of real-time data streaming.

All 5 comments

In every possible ways real time just doesn't works on my side...
However I saw the two closed issues where it said that we have to reinstanciate data variable but no refreshing on behalf of ngx-chart

This issue refers to the real-time data not being implemented on the demo page.

To update the chart, you need to pass it immutable data.

How do I pass real-time data from socket.io. I can't see any working example in the demo page. I appreciate if you give some example of real-time data streaming.

@vishd Did you ever get real time data working with socket.io and ngx-charts?

Here's a good demo for this one. websockets and Ngx Charts
https://medium.com/oril/spring-boot-websockets-angular-5-f2f4b1c14cee

Basically once you subscribed on sockets you just need to pass the data retrieved and assign those data for your charts consumption in my case. I initialized an array
"name": "Data",
"series": [{
"name": (time series data here),
"value": ""

Was this page helpful?
0 / 5 - 0 ratings