With more & more data being deployed into the cloud, there is a need to be able to fetch / stream the data directly from the cloud into end users' device(s). This project is a minimal application that fetches sample ECG data (in csv format) from a publicly shared google sheet, parses the fields and plots into a browser window using Plotly.js
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Clone the project: https://github.com/sshesh/sliding-chart.git
- A code editor (such as Visual Studio Code in this case. VSC provides a "live-server" plugin, a handy tool for testing.)
- A browser (Google Chrome browser in this case).
- A Google Sheet (comes as part of GSuite Apps) where ECG data may be stored and retrieved as a CSV file.
To install Visual Studio Code on your platform, please follow instructions detailed under https://code.visualstudio.com/docs/setup/setup-overview
- From website - https://physionet.org/cgi-bin/atm/ATM, make suitable selections in the tool. Data samples are generated at the bottom of the page.
- Save the CSV file onto your computer.
- From Google Sheets main menu, choose File -> "Publish to web" option & copy the link into your script code.
const uri = ("https://docs.google.com/spreadsheets/d/e/2PACX-1vRhJSg7JV5W_LALesi4F20AWr6cCev99mr12Zh9j6At3TDJWGqYf4qsblAvLYPbugcnK0FOJ_WMnWRV/pub?gid=2093731892&single=true&output=csv");
- Click on "Go-Live" if you're using Visual Studio Code with the plugin installed.
TBD
TBD
- Ubuntu 14.04 LTS
- Microsoft Visual Studio Code version 1.34.0
- GSuite (for Google Sheets App)
- Google Chrome version 74.0.3729
*Access to XMLHttpRequest at 'https://docs.google.com...&output=csv' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Please check SO @ https://stackoverflow.com/questions/20035101/why-does-my-javascript-get-a-no-access-control-allow-origin-header-is-present?rq=1
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Subramanya Sheshadri - Initial work
See also the list of CONTRIBUTORS.md who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- This README Template: https://gist.github.com/PurpleBooth/109311bb0361f32d87a2#file-readme-template-md