Coder Social home page Coder Social logo

circularsankey_plotter's Introduction

CircularSankey_Plotter

Steps to use code (local implementation using nodeJS)

Install NodeJS and NPM (https://phoenixnap.com/kb/install-node-js-npm-on-windows , https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)

Open Node.sj on windows or Linux Bash command line and Verify NPM installation using npm -v and node --version

Run npm install d3-sankey-circular, npm install d3-sankey, npm install d3-save-fig. These D3 packages are stored into a new folder (node_modules)

Upload Sankey database into Sankey_XXX.js (Can use 'finalJSConstructor.py XXX.csv' to generate this Sankey_XXX.js)

Replace Sankey_1.js in index.html with Sankey_XXX.js

Run nodejs fileserver.js

Open localhost:8080 and click download SVG

Alternatively use online JS editors (requires no installations)

Open https://blockbuilder.org/vyom-thakker/4dfeed315f66e3a5ed3b10130e397a9e

Upload your Sankey_XXX.js

Change <script src="Sankey_minGWP.js"></script> to <script src="Sankey_XXX.js"></script>

View your sankey at the top screen and take screenshot of sankey (does not allow SVG generation)

circularsankey_plotter's People

Contributors

vyom-thakker avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.