Open alexsmartens opened 6 years ago
See a working example: https://github.com/fkhosrow/RealTimeChart (of interest are App.js and Chart.js). Note that my chart does not work like the example shown for this library. I do NOT think it's possible to feed points in the chart load event. I fiddled with this endlessly and gave up in the end. Instead, I re-render the chart after n number of points. The chart is still animated when each point is rendered on the chart. To add add points to the Chart, I just set the state of the Chart component in the App component every 2 seconds.
@fkhosrow hi the link you provided doesn't exist anymore.
Any updates here ??
any update to make live chart ?
Hi there, I'm trying to use your library for real time data plotting, however I'm having some troubles with figuring out how to pass data points to ChartView element in real time. Can you explain how to pass point coordinates to ChartView from react-native body?
For example, consider adding a function XYgenerator() which updates two variables this.X and this.Y to your react-native-highcharts code in readme:
How is it possible to pass
this.X and this.Y
to ChartView each time I update this variables instead ofevents: { load: function () {...}}
? Maybe there is a way of passing a callback to ChartView? If this is the case, then how to pass a callback to it? Or would you suggest something else?I went over some similar issues as #62, #40 and #33, but they don't seem to be helpful