mascot-vis
v3.0.5
Published
Manipulable Semantic Components in Data Visualization
Downloads
75
Readme
Mascot: Manipulable Semantic Components in Data Visualization
Setup Instructions
- Install NPM
- Install all local packages - From the terminal run
npm install
. You need to run this command whenever there are changes to package dependencies.
Build and Run Project
- To build project one time with
npm run build
OR build automatically on save with file watchingnpm run watch
. Two modules (same content, different formats) will be built:mascot-es.js
for node.js applications, andmascot-umd.js
for in-browser appications. - To run the in-browser demos, start a server with
npm run start
(you need to have Python 3 installed), and loadlocalhost:8020
in browser; you can also start the server using Python 2 with the commandpython -m SimpleHTTPServer <port>
Add a Demo to the Gallery
- Add a new .js file with a descriptive name containing the demo code to the
demos
folder. If you require sample code, refer to the other demos available in that folder. - Any dataset used in your demo should be placed in the corresponding folder in
datasets
. - Add a new entry to
_index.json
in thedemos
folder, your key must have the initial letter capitalized and match the name of your .js file.