Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

16
Data-Driven Document BY SIMA MEHRI

Transcript of Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Page 1: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Data-Driven DocumentBY SIMA MEHRI

Page 2: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Voronoi Diagram

http://christophermanning.org/gists/1734663/

Page 4: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Uber Rides by Neighborhood

http://bost.ocks.org/mike/uberdata/

Page 5: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Time Series Visualization

http://square.github.io/cubism/

Page 7: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

D3.js

A JavaScript library

for producing dynamic, interactive data visualizations 

in web browsers.

Uses SVG, HTML5, and CSS standards.

successor to Protovis 

Allows great control over the final visual result

Page 8: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Creators:

Professor Jeff Heer,

Ph.D. student Mike Bostock, and

M.S. student Vadim Ogievetsky

Stanford University's Stanford Visualization Group

2009 Protovis

2011 D3

Page 9: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Selection

Javascript var paragraphs = document.getElementsByTagName("p");

for (var i = 0; i < paragraphs.length; i++) {

var paragraph = paragraphs.item(i);

paragraph.style.setProperty("color", "white", null);

}

D3 employs a declarative approach,

operating on arbitrary sets of nodes called selections.

d3.selectAll("p").style("color", "white");

Page 10: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Enter and exit

create new nodes for incoming data

remove outgoing nodes

Page 11: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Transitions

values for attributes and styles can be smoothly interpolated over a certain time.

Page 12: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Data-binding

For each element of data, D3 can create an SVG object with associated properties (shape, colors, values) and behaviors (transitions, events). 

Page 13: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

What to show?

Boxplot

Scatter plot

Bubble chart

Bullet chart

Line chart

Area chart

Pie chart

Map

Cord diagram

Time series

Word cloud

Hive plot

Progress component

Heat map

Game!!!

Page 14: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Additional resources

Libraries (e.g. dc.js, NVD3, Dimple, crossfilter, etc)

Products (e.g. InfoCaptor: Tableau like Drag and Drop D3 Chart Builder)

Online editors (e.g. Bar chart code generator and online editor)

Interoperability (e.g. Plotting library for python based on d3,

mpld3: d3 visualizations of matplotlib (python) plots)

Reusable APIs (e.g. Scatter, Time Series, and Box Plots)

Page 15: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

A closer look

https://github.com/mbostock/d3/wiki/Gallery

Page 16: Data-Driven Document BY SIMA MEHRI. Voronoi Diagram

Thanks