dazzing data depiction with d3.js

25
with Dazzling Data Depiction .JS https://github.com/ecarlisle/d3-jsnation http://www.slideshare.net/ericcarlisle Github: SlideShare:

Upload: eric-carlisle

Post on 02-Jul-2015

2.216 views

Category:

Technology


1 download

DESCRIPTION

Find presentation code at: https://github.com/ecarlisle/d3-jsnation

TRANSCRIPT

Page 1: Dazzing Data Depiction with D3.JS

with

Dazzling Data

Depiction

.JS

https://github.com/ecarlisle/d3-jsnation

http://www.slideshare.net/ericcarlisle

Github:

SlideShare:

Page 2: Dazzing Data Depiction with D3.JS

Me, Myself, and I

Name:

Craft:

Crew:

Locale:

XP:

Eric Carlisle

UI / UX Architect

Baltimore, MD

Page 3: Dazzing Data Depiction with D3.JS

Agenda

• Brief History of the World (abridged for D3)

• What D3 is & What it’s Not

• Getting Started with D3

• Enter, Update, Exit

• Transitions

• Scales

• Q&A

Page 4: Dazzing Data Depiction with D3.JS

Before D3, Data Viz was…

• Part of a larger software suite.

Page 5: Dazzing Data Depiction with D3.JS

Before D3, Data Viz was…

or

• Piped through a browser

plugin.

• Part of a larger software suite.

Page 6: Dazzing Data Depiction with D3.JS

Before D3, Data Viz was…

or

• Piped through a browser

plugin.

• Dependent on a 3rd party

service.

or

• Part of a larger software suite.

Page 7: Dazzing Data Depiction with D3.JS

Before D3, Data Viz was…

• An Excel export.

or

• Piped through a browser

plugin.

• Dependent on a 3rd party

service.

or

or

• Part of a larger software suite.

Page 8: Dazzing Data Depiction with D3.JS

What is D3?

“A JavaScript library for manipulating

documents based on data”

Standards based

Native to Modern Browsers*

Data Driven Documents

Page 9: Dazzing Data Depiction with D3.JS

What is D3?

* Version 9+ of the browser that shall not be named.

“A JavaScript library for manipulating

documents based on data”

Standards based

Native to Modern Browsers*

Data Driven Documents

Page 10: Dazzing Data Depiction with D3.JS

D3 is NOT a…

• Monolithic JavaScript framework

• Graphing, charting library

• Graphical Abstraction

• Shim

Page 11: Dazzing Data Depiction with D3.JS

D3 is NOT a…

• Monolithic JavaScript framework

• Graphing, charting library

• Graphical Abstraction

• Shim

Page 12: Dazzing Data Depiction with D3.JS

Getting Started

Familiar with ?

DOM Selection – jQuery (Sizzle) DOM Selection – D3 (W3C Selectors API)

Method Chaining – jQuery Method Chaining – D3

Page 13: Dazzing Data Depiction with D3.JS

CODE NOW!

Page 14: Dazzing Data Depiction with D3.JS

Getting Started

Event Handling – jQuery Events – D3

Data Retrieval - jQuery Data Retrieval – D3

?Familiar with

Page 15: Dazzing Data Depiction with D3.JS

MOAR CODE!

Page 16: Dazzing Data Depiction with D3.JS

The Enter, Update, Exit

PatternTypical pattern for binding data to the DOM

DATA

DOMDATA \ DOM DOM \ DATA

DATA DOM

Page 17: Dazzing Data Depiction with D3.JS

The Enter, Update, Exit

PatternTypical pattern for binding data to the DOM

selection.data()

UPDATEENTER EXIT

Page 18: Dazzing Data Depiction with D3.JS

MOAR MOAR CODE!

Page 19: Dazzing Data Depiction with D3.JS

Transitions

• Selections operating over time

• Transformation via interpolation

• Can be good or evil.

• Can be chained

Page 20: Dazzing Data Depiction with D3.JS

Transitions

• Selections operating over time

• Transformation via interpolation

• Can be good or evil.

• Can be chained

Page 21: Dazzing Data Depiction with D3.JS

CODE!Hello, what have we here?

Page 22: Dazzing Data Depiction with D3.JS

Scales

• Maps domain input to output range

• Does the math for you!!!

• Quantitative, Ordinal, Time

• Can be chained

Domain: range of input values (data)

Range: range of output values (constraint)

Page 23: Dazzing Data Depiction with D3.JS

CODE!(DEEP BREATH)

Page 24: Dazzing Data Depiction with D3.JS

Also Check Out

• NVD3 http://nvd3.org/

• C3 http://c3js.org/

• Rickshaw http://code.shutterstock.com/rickshaw/

• Dashing D3.JS https://www.dashingd3js.com/

Page 25: Dazzing Data Depiction with D3.JS

Q&A

[email protected]

eric_carlisle

https://github.com/ecarlisle/d3-jsnation

http://www.slideshare.net/ericcarlisle

Email

Twitter:

Github:

SlideShare: