Firnaz
Firnaz

Reputation: 552

Javascript Android - plot ECG graph without using 3rd party API's

I need to plot an ECG graph using Javascript without using any API's. I will get a response (graph-co-ordinates) from the server and i have to plot a graph. It can be done in Javascript "CANVAS" or "SVG". But i dont know where to start. Give me some guidance for this criteria.

Upvotes: 2

Views: 2942

Answers (2)

Sergey Chuvaev
Sergey Chuvaev

Reputation: 101

You can use a tiny but useful ECG chart display tool. https://github.com/sergey-chuvayev/ecg_display_plugin

Upvotes: 1

flup
flup

Reputation: 27104

Use an API, and hours of work have already been done for you. Plenty mistakes have been made and learned from. You save yourself lots of work. Given the nature of your plots, choose your library based on maturity, how well the date-time axis is supported and on if you can easily add a raster to the canvas.

A good candidate, seems to me, is Highcharts, if the licence (Creative Commons non-commercial) agrees with you.

Once you have chosen your library, first plot the simplest sample plot using their demos or tutorial.

Then pick a couple examples from the demo or tutorial that demonstrate aspects of your ECG plots (date time axis, raster, style/colors, splines?)

Then move on to showing sample data from one of your ECGs.

Upvotes: 1

Related Questions