sweetymeow / streamgraph.js Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jsundram/streamgraph.js
Home Page: http://runningwithdata.com/post/566345323/streamgraph-js
This project forked from jsundram/streamgraph.js
Home Page: http://runningwithdata.com/post/566345323/streamgraph-js
Streamgraph.js is a port of Lee Byron and Martin Wattenberg's streamgraph_generator (http://github.com/leebyron/streamgraph_generator) to javascript and processing.js. The paper "Stacked Graphs -- Geometry & Aesthetics" by Byron & Wattenberg is useful to consult. I've added the following features (which can be turned off or ignored): * Dynamic Sizing * Legend * Settings (Dynamically changeable Layout, Colors, etc.) * Zoom (Drag to select an area, ESC to zoom out) * Hover (Highlights the layer under the mouse, presents the layer name and relevant data at the top of the screen) * New Color Option, NiceRandom (a bit more variation) * Real examples (showing how to use). Known issues: * The examples don't work locally using Chrome on Mac. How to use: Consult any of the examples. Basically, you need to: * Create a javascript file that implements getStreamgraphData() and getStreamgraphLabels. * Optionally, you can add getStreamgraphSettings() if you wish to modify the default settings. * Your getStreamgraphData() needs to return a 2D array, where each column contains a series, and each row conains a time-slice. * There should be the same number of labels as columns. * Create an html file that includes processing.js, streamgraph.js, streamgraph.settings.js and your javascript file. * Place a canvas tag with its datasource set to streamgraph.pjs. Alternatively, use jquery, as described here: http://processingjs.org/source/ajax-init/index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.