P-bibs / codap-transformers

A plugin for CODAP that enables data transformations like map, filter, and fold
https://codap.concord.org/app/static/dg/en/cert/index.html?di=https://laughing-dijkstra-115d3c.netlify.app/
MIT License
3 stars 2 forks source link

Transformers

Transformers is a plugin for CODAP which allows you to transform datasets to produce new, distinct output datasets or values, instead of modifying the original input dataset itself.

Individual transformers can be composed, and updates made to the input(s) of a transformer will flow through to its outputs accordingly. Transformers can also be saved and reused on several datasets.

For more information on the plugin and the available transformers themselves, see the documentation.

Working on Transformers

Project Structure

Running locally with CODAP

After cloning the repository, run

npm install

to install dependencies.

To launch the plugin in a local instance of CODAP, start both the plugin and CODAP and navigate in a browser to

http://localhost:4020/dg?di=http://localhost:3000

Available Scripts

In the project directory, the following commands are available:

# Runs the app in the development mode. See above section for opening the plugin inside CODAP.
npm start
# Launches the test runner.
npm test
# Formats all ts/tsx files.
npm run format
# Runs the linter.
npm run lint
# Creates a production build
npm run build

Authors

This plugin is brought to you by Paul Biberstein, Thomas Castleman, and Jason Chen of the Brown University PLT, in collaboration with The Concord Consortium and Bootstrap.