GithubHelp home page GithubHelp logo

visualizationpractice's Introduction

Visualization coding practices primarily using D3.

Force-directed Graph

  • Description

    Model the graph as a physical system — nodes are particles that repel each other, and links are springs that pull related nodes together — to determines the node positions. Based on strong theoretical foundations, such layout is usually simple, aesthetic, interactive and of good quality.

  • without D3

    • implementation

      1. Generate nodes and links randomly

      2. Calculate Repulsion and Attraction

        based on the Coulomb's law $F_r=k_r\frac{q_1q_2}{r^2}$ and Hooke's law $F_s=k_s(x-x_0)$, we assume both $q_1$ and $q_2$ is equal to $1$, and adjust the constant coefficients to produce a pleasing effect.

      3. Update coordinates

      4. Go to step2 and iterate enough times

      5. Illustrate the graph

    • results

      Figure 1a. 30 nodes iterating 1000 times

  • With D3

    Figure 1b. network of character co-occurence in Les Misérables illustrating with D3

Word Cloud

Figure 2 word cloud of "The Zen of Python, by Tim Peters"

Stacked Graph

Figure 3 stacked(or stream) graph of randomly generalized data of 20 layers

Scatter Plot Matrix

visualizationpractice's People

Contributors

vaceee 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.