nicar 2010: hidden power of javascript

8
The Hidden Power of Javascript Michelle Minkoff Medill School of Journalism, Northwestern University

Upload: michelle-minkoff

Post on 14-Jun-2015

2.202 views

Category:

Technology


3 download

DESCRIPTION

Learn why Javascript is useful, and how simple coding can help you navigate the world of the Google Visualization API -- esp for deadline-driven graphs useful for journalism.

TRANSCRIPT

Page 1: NICAR 2010: Hidden Power of Javascript

The Hidden Power of Javascript

Michelle MinkoffMedill School of Journalism,

Northwestern University

Page 2: NICAR 2010: Hidden Power of Javascript

Web-Language Triangle

• HTML – gives us the content• CSS – lays out the content• Javascript – lets user interact with the content– Uses tags like HTML and CSS– Always goes in the head• Easier to separate content

Page 3: NICAR 2010: Hidden Power of Javascript

Javascript + mobile

• Supports these browsers:– Opera Mobile (>= 8.x, not Opera Mini)– Internet Explorer Mobile (WM 5.0/2003)– S60 3rd edition (WebKit/KHTML core)– Minimo (Gecko-based)– OpenWave (>=Mercury)– NetFront (>=3.4)– Safari Mobile (iPhone)

Page 4: NICAR 2010: Hidden Power of Javascript

What kind of interactivity?

• Caution: Novice perspective ahead!• Coolest line of code so far:• <A HREF="javascript:javascript:history.go(-

1)">Click here to go back to search results.</A>

Page 5: NICAR 2010: Hidden Power of Javascript

Google Viz API

• Data-driven apps drive exploration• Use mobile to kill time• Reach people where they want your content• Can explore nodes on a graph

Page 6: NICAR 2010: Hidden Power of Javascript

Node Display

• Two lines:– Axis– Value

• Efficacy of popup depends on you!

Page 7: NICAR 2010: Hidden Power of Javascript

Types of Charts

• Interactive chart types (not all-inclusive):• Bar (horizontal)• Column (vertical)• Pie• Scatterplot• Line• Dygraph (zoomable time series)

Page 8: NICAR 2010: Hidden Power of Javascript

DEMO