Skip to content

vatsamail/d3_svg_tutorial

Repository files navigation

Data Visualizations using D3

D3 -

  • Stands for Data-Driven-Documents
  • Is a Javascript Library
  • works on "modern" web browsers
  • renders stunning visualizations
  • can be plugged to Django (as this is completely dealt as frontend)
  • Uses SVG (Scalable Vector Graphics), HTML5 and CSS
  • D3 Wiki

Usage

Steps -

  • download/clone the folder
  • open index.html in any modern browser.

This bundle contains-

  • d3.min.js (D3 javascript library)
  • a base.css file for basic look-n-feel
  • an index.html file that demonstrates the work
  • an open style.css file
  • a bunch of d3 javascripts (most of them are already enabled in index.html)

How to learn?

  • Open your favorite editor. I use atom
  • Look at the source code of index.html
  • Spend time enabling one javascript at a time. Start with select_script.js
  • Comment all other javascripts, just keep script.js active
  • You can copy select_script.js into script.js
  • Refresh the browser index.html
  • The best part is, the changes you make immediately reflects on the browser
  • Please use browser debuggers to inspect the elements.
  • Now, understand the content of script.js line-by-line. There are code comments in place to help you
  • Once done understanding select_script.js, move on to the subsequent ones.
  • And, don't forget to have fun!

Credits:

contact: Vatsa

About

learning D3, SVG for data visualizations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published