Closed clhenrick closed 7 years ago
Note: calculation for elevation gain is off, should be:
let elevGain = data.reduce((acc, cur, idx, arr) => {
if (idx > 0 && (cur.y > arr[idx - 1].y)) {
acc += cur.y - arr[idx - 1].y;
}
return acc;
}, 0);
With the notable line being line 3: acc += cur.y - arr[idx - 1].y;
Needs to be collapsable for mobile only.
Pretty much implemented, could display a loading message for when the elevation API call is made.
Probably don't need to show the ocean depth:
SVG clipping paths to the rescue!
Implemented and is working well on both mobile and Desktop
UI / visualization for rendering elevation profile after a user searches for a portion of the ECG.