Giter VIP home page Giter VIP logo

learn_d3's Introduction

Intro

This is repository designed as a sandbox to play with javascript, primarily to get up and running with d3 and other visualization libs

A demo d3 visualization I made in this repo can be viewed at: https://tychonautvii.github.io/learn_d3/

Sources

Introductory Material

I started with an intro to some basic front end tech in a d3 context: http://www.jeromecukier.net/blog/2012/09/04/getting-to-hello-world-with-d3/

This is introduces the concepts of d3 well, but is a little dated and d3 v3 focused: https://square.github.io/intro-to-d3/web-standards/

Javascript

My Fav Javascript Overview: https://javascript.info/

I also ended up selecting a javascript framework, mostly just to make it easier to interact with user input. I consulted the following resources, and ultimately chose angular: https://da-14.com/blog/5-best-javascript-frameworks-2017 http://www.adeveloperdiary.com/react-js/integrate-react-and-d3/

I used codeschool to learn enough angular for my requirements: http://campus.codeschool.com/courses/shaping-up-with-angularjs/level/3/section/1/video/1

Deeper on D3

https://github.com/d3/d3/wiki/Tutorials https://github.com/d3/d3/blob/master/CHANGES.md#selections-d3-selection

Very cool stuff interactive demo of d3 update pattern. Really helped me understand d3: https://bl.ocks.org/cmgiven/32d4c53f19aea6e528faf10bfe4f3da9 Goes along with this: https://bl.ocks.org/mbostock/3808218

Good source on tooltips http://bl.ocks.org/d3noob/a22c42db65eb00d4e369

Helpfull with the Zoom https://bl.ocks.org/sgruhier/50990c01fe5b6993e82b8994951e23d0 http://bl.ocks.org/jasondavies/3689931

Angular + D3: https://medium.com/netscape/visualizing-data-with-angular-and-d3-209dde784aeb

Features To Add:

  • Add Algorithum Checkboxes
  • Add a Widget to turn on/off tooltip
  • Add a Box Zoom
  • Add a Dynamic Legend

Development Configuration Info

I use ECMAScript 6 to have scope, and avoid declaration hoisting

Install home-brew https://github.com/Homebrew/install

NPM install globally or in a local project directory

brew install node
brew install npm
npm install -g d3 --save
npm install -g @types/d3 --save-dev
npm install -g angular

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.