Giter VIP home page Giter VIP logo

udacity-data-visualization-with-d3's Introduction

udacity-data-visualization-with-d3

Repository with examples made from the Udacity course.

#notes from video:

  • With d3 4, to load the function in the console, you must put the "!" at the beggining of the function and remove the comments;

D3 Building blocks https://d17h27t6h515a5.cloudfront.net/topher/2016/July/57966c9c_data-vis-demo/data-vis-demo.zip https://d3js.org/d3.v4.min.js

d3.select('.main').html(null); var svg = d3.select('.main').append('svg'); svg.attr('width', 600).attr('height', 300); //var y = d3.scaleLinear().domain([15, 90]).range([250,0]); var y = d3.scale.linear().domain([15, 90]).range([250,0]); //var x = d3.scaleLog().domain([250,100000]).range([0, 600]); var x = d3.scale.log().domain([250,100000]).range([0, 600]); //var r = d3.scaleSqrt().domain([52070,1380000000]).range([10, 40]); var r = d3.scale.sqrt().domain([52070,1380000000]).range([10, 40]); svg.append('circle').attr('fill', 'red').attr('r',r(1380000000)).attr('cx', x(13330)).attr('cy', y(77));

udacity-data-visualization-with-d3's People

Contributors

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