Day 155 of 180 Days of Data Viz Learning #jfdi

I’m doing some form of data visualization learning for 180 days because I need to #JFDI.

See post explaining how and why I’m doing this.

Code Learning:

Udacity Data Visualization and D3.js DimpleJS lectures

  • + is called unary operator that converts into numeric form
  • Use debugger to view data transformations, eg. looking at d, d[‘date’], d.attendance, and you can also use booleans to check types
  • Example of date and string transformation:
    • d3.tsv(“world_cup_geo.tsv”, function(d) {
      • d[‘date’] = format.parse(d[‘date’]);
      • d[‘attendance’] = +d[“attendance”];
      • return d; }, draw);

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s