publiclab / simple-data-grapher

Turns CSVs into graphs in a few simple steps; embeds onto other websites!
https://publiclab.github.io/simple-data-grapher/
GNU General Public License v3.0
38 stars 52 forks source link

simple-data-grapher

Code of Conduct Build Status

Turns CSVs into graphs in a few simple steps; embeds onto other websites!

Quick Setup :

Installation Instructions:

  1. Clone this repository to your local environment. git clone https://github.com/publiclab/simple-data-grapher
  2. Run npm install to install all the necessary packages required.
  3. Open examples/index.html in your browser to look at the preview of the library.

Instructions for a developer:

  1. Make the changes you are working on in respective /src files.
  2. After doing or while doing the changes run npm run build for making the changes in the dist/.
  3. Run npm run test to run the tests.
  4. Test your changes on a browser by opening examples/index.html.
  5. For finding linting issues run npm run lint

We are using babel to transpile code into es5 and browserify to require different files and watch to watch the changes and build the changes. For testing we are using mocha.

Flow: Basic Flow of the Library

Peripheral Features in Stand-alone

Plotlyjs v/s Chartjs

I created an adapter function which can easily switch between the two charting libraries, as one can be advantageous over the other in different situations.

Flow in plots2

The basic flow remains the same as in the standalone library.

Features introduced on integration

Publish as a Research Note

The user can publish their plotted charts as a Research Note on Public Lab and discuss their findings.

Flow