Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to animate line graph on ECG real-time data? #4

Open
bitabs opened this issue Feb 3, 2018 · 12 comments
Open

How to animate line graph on ECG real-time data? #4

bitabs opened this issue Feb 3, 2018 · 12 comments

Comments

@bitabs
Copy link

bitabs commented Feb 3, 2018

Firstly, great job on this repo. Can't wait for it to get better.

I'm currently trying to use this module to use a line graph for my ECG data and animate it with new data.

Is it possible to use real-time data and show it in a line graph? Here is what I mean by animation.

Please let me know.

Thanks

@Obooman
Copy link
Member

Obooman commented Feb 4, 2018

This library designed for display prepared data, so real-time data rendering may not be the target.
But for react-native-ART, it's absolutely possible, You can check this as a reference and try it by hand, or I can write a library for such needs(be called real-time graph or something), if you prefer the second choice it can be available around next week.

@bitabs
Copy link
Author

bitabs commented Feb 4, 2018

Mate, would you be able to give it ago and hope to make it ready for next week? I pretty much think having a separate repo just for real-time would be a bit hit, and would help the community greatly. Really appreciate it. @Obooman

@YaweiZhang-930
Copy link

Good job! I am having the same issue displaying the real-time data for line chart. @Obooman do you have some ideas how to animate the line graph with real time data? Much appreciated!

@NaseebullahSafi hey did you get any chance figuring out how to animate real-time data and render the line chart?

@michaelczw
Copy link

@NaseebullahSafi Hey, I'm working on a similar react-native project to render a real-time ECG chart while streaming data from a device.

I've come to realise that it's only doable using native modules to render the data to screen, especially with a sampling at a 50Hz frequency, avoiding the single JS thread that react-native depends on. Attempting to read the data from react-native will jam up the JS thread and freeze the app.

@bitabs
Copy link
Author

bitabs commented Jul 29, 2018

@Yaweii @michaelczw I'm afraid with the current support for graphs, it is not possible to produce real-time ECG chart. I spent considerably long time trying to fix this, but it seems its just not possible. One "hack" way was to use highchartsjs and render the line chart every 10 seconds. (note: 10 seconds interval will create smooth ECG animation).

If you want a complete log, I'll go in more details.

@yanb2016
Copy link

yanb2016 commented Mar 8, 2019

@NaseebullahSafi @Yaweii Do you guys get the ECG data from Apple Healthkit, or somewhere else? I am currently working on a project, trying to animate ECG data, but seems I can't get data from Healthkit like getting Steps and others. Any thoughts?

@rizwanuu
Copy link

rizwanuu commented Jan 3, 2022

hi, i am also working on this ECG animation and graph. is there any package for this? anyone can help?

@bitabs
Copy link
Author

bitabs commented Jan 3, 2022

As for me, I had the data coming through from my Arduino.

@rizwanuu
Copy link

rizwanuu commented Jan 3, 2022

@TheCapedBaldi can you tell me.
are you working in react native? And your chart is animating?

@rizwanuu
Copy link

rizwanuu commented Jan 3, 2022

I want to implement an ECG chart in react-native.

@rizwanuu
Copy link

rizwanuu commented Jan 3, 2022

is here anyone who implement an ECG chart in react-native?

@charanteja0017
Copy link

hope this helps

link : https://codepen.io/alexmwalker/pen/jjOmMV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants