SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
D3.js
              Data-Driven Documents
              http://d3js.org/




             Joris Klerkx - @jkofmsk
Wednesday 3 October 12
What?

                            Bind arbitrary data do a
                         Document Object Model (DOM)


                               Apply data-driven
                          transformations to the DOM


Wednesday 3 October 12
From data..                                                                     to interactive
                                                                                    visualisations
   [4, 8, 15, 16, 23, 42];

  function(d) {
       return d3.time.days(new Date(2012, 0, 1),
       new Date(2013, 0, 1));
    })


   name,economy (mpg),cylinders,displacement (cc),power (hp),weight (lb),0-60 mph
   (s),year
   AMC Ambassador Brougham,13,8,360,175,3821,11,73
   AMC Ambassador DPL,15,8,390,190,3850,8.5,70
   AMC Ambassador SST,17,8,304,150,3672,11.5,72


                                                              CSV
   AMC Concord DL 6,20.2,6,232,90,3265,18.2,79
   AMC Concord DL,18.1,6,258,120,3410,15.1,78
   AMC Concord DL,23,4,151,,3035,20.5,82
   AMC Concord,19.4,6,232,90,3210,17.2,78
   AMC Concord,24.3,4,151,90,3003,20.1,80




   {
   "employees": [
   { "firstName":"John" , "lastName":"Doe" },
   { "firstName":"Anna" , "lastName":"Smith" },
   { "firstName":"Peter" , "lastName":"Jones" }
   ]
                                                            JSON
   }



Wednesday 3 October 12
Advantages
   Web standards
           HTML, SVG, CSS


    Well-known web technologies
             javascript, json, CSV, ...


      Extensive API
              https://github.com/mbostock/d3/wiki/API-Reference


     All (modern) browsers & platforms
              IE9, Chrome, FF, Safari, ... mobile, desktop


Wednesday 3 October 12
Who knows?
                 • HTML?
                 • CSS?
                         • http://www.w3schools.com/css/

                 • Javascript?
                         • http://www.w3schools.com/js/

                 • SVG?
                         • http://www.w3schools.com/svg/

Wednesday 3 October 12
Scalable Vector Graphics
        Denition of graphics in XML

        <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
          <circle cx="100" cy="50" r="40" stroke="black"
          stroke-width="2" fill="red" />
        </svg>


        <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
          <text x="10" y="20" style="fill:red;">Several lines:
            <tspan x="10" y="45">First line</tspan>
            <tspan x="10" y="70">Second line</tspan>
          </text>
        </svg>


        <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
          <rect x="50" y="20" rx="20" ry="20" width="150" height="150"
        style="fill:red;stroke:black;stroke-width:5;opacity:0.5" />
        </svg>



Wednesday 3 October 12
D3 - Three little circles




 http://mbostock.github.com/d3/tutorial/circle.html
Wednesday 3 October 12
Look out
                         Quite a learning curve




Wednesday 3 October 12
Tools you need
                         • Text Editor or IDE
                         • Browser(s)
                         • Developer Tools - embedded in
                           Chrome (or rebug in FF)




Wednesday 3 October 12
Tool(s) that could be useful
                         SVG Editor (e.g. InkScape)
                         http://colorbrewer2.org/




Wednesday 3 October 12
Further Reading
                                    http://mbostock.github.com/d3

                         http://www.jeromecukier.net/blog/2012/09/04/getting-to-
                                          hello-world-with-d3/

                                 http://christopheviau.com/d3_tutorial/

                            http://alignedleft.com/tutorials/d3/fundamentals/

                                                   ...


                         If you nd other resources,
                           please share via twitter!
Wednesday 3 October 12
Your Mission.
                         • Play with D3.js
                         • Look at tutorials & examples
                         • Check out datasets
                           • http://www.visualizing.org/contests/visualize-us-election
                           • http://www.visualizing.org/contests/oecd-education-
                              challenge

                           • http://www.visualizing.org/data/browse

                         • 17 october: Show-and-Tell

Wednesday 3 October 12
Thank you.

                         Now up to you.




Wednesday 3 October 12

Weitere ähnliche Inhalte

Ähnlich wie D3.js capita selecta

Visdjango presentation django_boston_oct_2014
Visdjango presentation django_boston_oct_2014Visdjango presentation django_boston_oct_2014
Visdjango presentation django_boston_oct_2014jlbaldwin
 
Utahjs D3
Utahjs D3Utahjs D3
Utahjs D3knomedia
 
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of Things
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of ThingsHTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of Things
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of ThingsJesse Cravens
 
JavaScript For People Who Don't Code
JavaScript For People Who Don't CodeJavaScript For People Who Don't Code
JavaScript For People Who Don't CodeChristopher Schmitt
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web DesignZach Leatherman
 
Performance Optimization and JavaScript Best Practices
Performance Optimization and JavaScript Best PracticesPerformance Optimization and JavaScript Best Practices
Performance Optimization and JavaScript Best PracticesDoris Chen
 
node.js in production: Reflections on three years of riding the unicorn
node.js in production: Reflections on three years of riding the unicornnode.js in production: Reflections on three years of riding the unicorn
node.js in production: Reflections on three years of riding the unicornbcantrill
 
The Responsive Grid & You: Extending Your WordPress Site Across Multiple Dev...
The Responsive Grid & You:  Extending Your WordPress Site Across Multiple Dev...The Responsive Grid & You:  Extending Your WordPress Site Across Multiple Dev...
The Responsive Grid & You: Extending Your WordPress Site Across Multiple Dev...Jeremy Fuksa
 
NoSQL Now 2013 Presentation
NoSQL Now 2013 PresentationNoSQL Now 2013 Presentation
NoSQL Now 2013 PresentationArjen Schoneveld
 
Does my DIV look big in this?
Does my DIV look big in this?Does my DIV look big in this?
Does my DIV look big in this?glen_a_smith
 
Art and Science of Web Sites Performance: A Front-end Approach
Art and Science of Web Sites Performance: A Front-end ApproachArt and Science of Web Sites Performance: A Front-end Approach
Art and Science of Web Sites Performance: A Front-end ApproachJiang Zhu
 
Building Rackspace Cloud Monitoring
Building Rackspace Cloud MonitoringBuilding Rackspace Cloud Monitoring
Building Rackspace Cloud Monitoringgdusbabek
 
R, Data Wrangling & Kaggle Data Science Competitions
R, Data Wrangling & Kaggle Data Science CompetitionsR, Data Wrangling & Kaggle Data Science Competitions
R, Data Wrangling & Kaggle Data Science CompetitionsKrishna Sankar
 
[refreshaustin] Adaptive Images in Responsive Web Design
[refreshaustin] Adaptive Images in Responsive Web Design[refreshaustin] Adaptive Images in Responsive Web Design
[refreshaustin] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
960 grid psd
960 grid psd960 grid psd
960 grid psdRaju Nag
 
D3: Easy and flexible data visualisation using web standards
D3: Easy and flexible data visualisation using web standardsD3: Easy and flexible data visualisation using web standards
D3: Easy and flexible data visualisation using web standardsJos Dirksen
 
Playing with d3.js
Playing with d3.jsPlaying with d3.js
Playing with d3.jsmangoice
 

Ähnlich wie D3.js capita selecta (20)

Visdjango presentation django_boston_oct_2014
Visdjango presentation django_boston_oct_2014Visdjango presentation django_boston_oct_2014
Visdjango presentation django_boston_oct_2014
 
Utahjs D3
Utahjs D3Utahjs D3
Utahjs D3
 
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of Things
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of ThingsHTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of Things
HTML5.tx 2013: Embedded JavaScript, HTML5 and the Internet of Things
 
JavaScript For People Who Don't Code
JavaScript For People Who Don't CodeJavaScript For People Who Don't Code
JavaScript For People Who Don't Code
 
Performance & Responsive Web Design
Performance & Responsive Web DesignPerformance & Responsive Web Design
Performance & Responsive Web Design
 
Performance Optimization and JavaScript Best Practices
Performance Optimization and JavaScript Best PracticesPerformance Optimization and JavaScript Best Practices
Performance Optimization and JavaScript Best Practices
 
node.js in production: Reflections on three years of riding the unicorn
node.js in production: Reflections on three years of riding the unicornnode.js in production: Reflections on three years of riding the unicorn
node.js in production: Reflections on three years of riding the unicorn
 
Introduction to D3.js
Introduction to D3.jsIntroduction to D3.js
Introduction to D3.js
 
The Responsive Grid & You: Extending Your WordPress Site Across Multiple Dev...
The Responsive Grid & You:  Extending Your WordPress Site Across Multiple Dev...The Responsive Grid & You:  Extending Your WordPress Site Across Multiple Dev...
The Responsive Grid & You: Extending Your WordPress Site Across Multiple Dev...
 
NoSQL Now 2013 Presentation
NoSQL Now 2013 PresentationNoSQL Now 2013 Presentation
NoSQL Now 2013 Presentation
 
Does my DIV look big in this?
Does my DIV look big in this?Does my DIV look big in this?
Does my DIV look big in this?
 
Art and Science of Web Sites Performance: A Front-end Approach
Art and Science of Web Sites Performance: A Front-end ApproachArt and Science of Web Sites Performance: A Front-end Approach
Art and Science of Web Sites Performance: A Front-end Approach
 
Couchbase
CouchbaseCouchbase
Couchbase
 
Building Rackspace Cloud Monitoring
Building Rackspace Cloud MonitoringBuilding Rackspace Cloud Monitoring
Building Rackspace Cloud Monitoring
 
R, Data Wrangling & Kaggle Data Science Competitions
R, Data Wrangling & Kaggle Data Science CompetitionsR, Data Wrangling & Kaggle Data Science Competitions
R, Data Wrangling & Kaggle Data Science Competitions
 
[refreshaustin] Adaptive Images in Responsive Web Design
[refreshaustin] Adaptive Images in Responsive Web Design[refreshaustin] Adaptive Images in Responsive Web Design
[refreshaustin] Adaptive Images in Responsive Web Design
 
960 grid psd
960 grid psd960 grid psd
960 grid psd
 
D3: Easy and flexible data visualisation using web standards
D3: Easy and flexible data visualisation using web standardsD3: Easy and flexible data visualisation using web standards
D3: Easy and flexible data visualisation using web standards
 
Playing with d3.js
Playing with d3.jsPlaying with d3.js
Playing with d3.js
 
The Devil and HTML5
The Devil and HTML5The Devil and HTML5
The Devil and HTML5
 

Mehr von Joris Klerkx

Visualisatie - Module 3 - Big Data
Visualisatie - Module 3 - Big DataVisualisatie - Module 3 - Big Data
Visualisatie - Module 3 - Big DataJoris Klerkx
 
Visualizing Reader Engagement
Visualizing Reader EngagementVisualizing Reader Engagement
Visualizing Reader EngagementJoris Klerkx
 
Les 9 - Informatie Visualisatie
Les 9 - Informatie VisualisatieLes 9 - Informatie Visualisatie
Les 9 - Informatie VisualisatieJoris Klerkx
 
Les 8 - informatie visualisatie
Les 8 - informatie visualisatie Les 8 - informatie visualisatie
Les 8 - informatie visualisatie Joris Klerkx
 
Les 7 - informatie visualisatie - interactie
Les 7 - informatie visualisatie - interactieLes 7 - informatie visualisatie - interactie
Les 7 - informatie visualisatie - interactieJoris Klerkx
 
Workshop Designing Useful apps
Workshop Designing Useful apps Workshop Designing Useful apps
Workshop Designing Useful apps Joris Klerkx
 
Les 4 informatie visualisatie
Les 4 informatie visualisatieLes 4 informatie visualisatie
Les 4 informatie visualisatieJoris Klerkx
 
Les 2 - Informatie Visualisatie
Les 2 - Informatie Visualisatie Les 2 - Informatie Visualisatie
Les 2 - Informatie Visualisatie Joris Klerkx
 
20160208 informatie visualisatie les 1
20160208 informatie visualisatie les 120160208 informatie visualisatie les 1
20160208 informatie visualisatie les 1Joris Klerkx
 
Visualisation - techniques, interaction dynamics, big data
Visualisation - techniques, interaction dynamics, big dataVisualisation - techniques, interaction dynamics, big data
Visualisation - techniques, interaction dynamics, big dataJoris Klerkx
 
Visualisation - introduction, guidelines, principles and design
Visualisation - introduction, guidelines, principles and designVisualisation - introduction, guidelines, principles and design
Visualisation - introduction, guidelines, principles and designJoris Klerkx
 
Bring your own idea - Visual learning analytics
Bring your own idea - Visual learning analyticsBring your own idea - Visual learning analytics
Bring your own idea - Visual learning analyticsJoris Klerkx
 
Quantified Self - LICT workshop - KU Leuven
Quantified Self - LICT workshop - KU LeuvenQuantified Self - LICT workshop - KU Leuven
Quantified Self - LICT workshop - KU LeuvenJoris Klerkx
 
Learning Analytics - Door data gestuurd leren
Learning Analytics - Door data gestuurd lerenLearning Analytics - Door data gestuurd leren
Learning Analytics - Door data gestuurd lerenJoris Klerkx
 
DM2E - Europeana Cloud
DM2E - Europeana CloudDM2E - Europeana Cloud
DM2E - Europeana CloudJoris Klerkx
 
User experience
User experience User experience
User experience Joris Klerkx
 
Multimedia les - intro tot informatie visualisatie
Multimedia les - intro tot informatie visualisatieMultimedia les - intro tot informatie visualisatie
Multimedia les - intro tot informatie visualisatieJoris Klerkx
 
the EMurgency project - LICT workshop on ICT in health
the EMurgency project - LICT workshop on ICT in healththe EMurgency project - LICT workshop on ICT in health
the EMurgency project - LICT workshop on ICT in healthJoris Klerkx
 
intro to information visualization
intro to information visualization intro to information visualization
intro to information visualization Joris Klerkx
 
Workshop on visualization in tel
Workshop on visualization in tel Workshop on visualization in tel
Workshop on visualization in tel Joris Klerkx
 

Mehr von Joris Klerkx (20)

Visualisatie - Module 3 - Big Data
Visualisatie - Module 3 - Big DataVisualisatie - Module 3 - Big Data
Visualisatie - Module 3 - Big Data
 
Visualizing Reader Engagement
Visualizing Reader EngagementVisualizing Reader Engagement
Visualizing Reader Engagement
 
Les 9 - Informatie Visualisatie
Les 9 - Informatie VisualisatieLes 9 - Informatie Visualisatie
Les 9 - Informatie Visualisatie
 
Les 8 - informatie visualisatie
Les 8 - informatie visualisatie Les 8 - informatie visualisatie
Les 8 - informatie visualisatie
 
Les 7 - informatie visualisatie - interactie
Les 7 - informatie visualisatie - interactieLes 7 - informatie visualisatie - interactie
Les 7 - informatie visualisatie - interactie
 
Workshop Designing Useful apps
Workshop Designing Useful apps Workshop Designing Useful apps
Workshop Designing Useful apps
 
Les 4 informatie visualisatie
Les 4 informatie visualisatieLes 4 informatie visualisatie
Les 4 informatie visualisatie
 
Les 2 - Informatie Visualisatie
Les 2 - Informatie Visualisatie Les 2 - Informatie Visualisatie
Les 2 - Informatie Visualisatie
 
20160208 informatie visualisatie les 1
20160208 informatie visualisatie les 120160208 informatie visualisatie les 1
20160208 informatie visualisatie les 1
 
Visualisation - techniques, interaction dynamics, big data
Visualisation - techniques, interaction dynamics, big dataVisualisation - techniques, interaction dynamics, big data
Visualisation - techniques, interaction dynamics, big data
 
Visualisation - introduction, guidelines, principles and design
Visualisation - introduction, guidelines, principles and designVisualisation - introduction, guidelines, principles and design
Visualisation - introduction, guidelines, principles and design
 
Bring your own idea - Visual learning analytics
Bring your own idea - Visual learning analyticsBring your own idea - Visual learning analytics
Bring your own idea - Visual learning analytics
 
Quantified Self - LICT workshop - KU Leuven
Quantified Self - LICT workshop - KU LeuvenQuantified Self - LICT workshop - KU Leuven
Quantified Self - LICT workshop - KU Leuven
 
Learning Analytics - Door data gestuurd leren
Learning Analytics - Door data gestuurd lerenLearning Analytics - Door data gestuurd leren
Learning Analytics - Door data gestuurd leren
 
DM2E - Europeana Cloud
DM2E - Europeana CloudDM2E - Europeana Cloud
DM2E - Europeana Cloud
 
User experience
User experience User experience
User experience
 
Multimedia les - intro tot informatie visualisatie
Multimedia les - intro tot informatie visualisatieMultimedia les - intro tot informatie visualisatie
Multimedia les - intro tot informatie visualisatie
 
the EMurgency project - LICT workshop on ICT in health
the EMurgency project - LICT workshop on ICT in healththe EMurgency project - LICT workshop on ICT in health
the EMurgency project - LICT workshop on ICT in health
 
intro to information visualization
intro to information visualization intro to information visualization
intro to information visualization
 
Workshop on visualization in tel
Workshop on visualization in tel Workshop on visualization in tel
Workshop on visualization in tel
 

KĂźrzlich hochgeladen

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...SeĂĄn Kennedy
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 

KĂźrzlich hochgeladen (20)

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 

D3.js capita selecta

  • 1. D3.js Data-Driven Documents http://d3js.org/ Joris Klerkx - @jkofmsk Wednesday 3 October 12
  • 2. What? Bind arbitrary data do a Document Object Model (DOM) Apply data-driven transformations to the DOM Wednesday 3 October 12
  • 3. From data.. to interactive visualisations [4, 8, 15, 16, 23, 42]; function(d) { return d3.time.days(new Date(2012, 0, 1), new Date(2013, 0, 1)); }) name,economy (mpg),cylinders,displacement (cc),power (hp),weight (lb),0-60 mph (s),year AMC Ambassador Brougham,13,8,360,175,3821,11,73 AMC Ambassador DPL,15,8,390,190,3850,8.5,70 AMC Ambassador SST,17,8,304,150,3672,11.5,72 CSV AMC Concord DL 6,20.2,6,232,90,3265,18.2,79 AMC Concord DL,18.1,6,258,120,3410,15.1,78 AMC Concord DL,23,4,151,,3035,20.5,82 AMC Concord,19.4,6,232,90,3210,17.2,78 AMC Concord,24.3,4,151,90,3003,20.1,80 { "employees": [ { "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName":"Jones" } ] JSON } Wednesday 3 October 12
  • 4. Advantages Web standards HTML, SVG, CSS Well-known web technologies javascript, json, CSV, ... Extensive API https://github.com/mbostock/d3/wiki/API-Reference All (modern) browsers & platforms IE9, Chrome, FF, Safari, ... mobile, desktop Wednesday 3 October 12
  • 5. Who knows? • HTML? • CSS? • http://www.w3schools.com/css/ • Javascript? • http://www.w3schools.com/js/ • SVG? • http://www.w3schools.com/svg/ Wednesday 3 October 12
  • 6. Scalable Vector Graphics Denition of graphics in XML <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" /> </svg> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <text x="10" y="20" style="fill:red;">Several lines: <tspan x="10" y="45">First line</tspan> <tspan x="10" y="70">Second line</tspan> </text> </svg> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <rect x="50" y="20" rx="20" ry="20" width="150" height="150" style="fill:red;stroke:black;stroke-width:5;opacity:0.5" /> </svg> Wednesday 3 October 12
  • 7. D3 - Three little circles http://mbostock.github.com/d3/tutorial/circle.html Wednesday 3 October 12
  • 8. Look out Quite a learning curve Wednesday 3 October 12
  • 9. Tools you need • Text Editor or IDE • Browser(s) • Developer Tools - embedded in Chrome (or rebug in FF) Wednesday 3 October 12
  • 10. Tool(s) that could be useful SVG Editor (e.g. InkScape) http://colorbrewer2.org/ Wednesday 3 October 12
  • 11. Further Reading http://mbostock.github.com/d3 http://www.jeromecukier.net/blog/2012/09/04/getting-to- hello-world-with-d3/ http://christopheviau.com/d3_tutorial/ http://alignedleft.com/tutorials/d3/fundamentals/ ... If you nd other resources, please share via twitter! Wednesday 3 October 12
  • 12. Your Mission. • Play with D3.js • Look at tutorials & examples • Check out datasets • http://www.visualizing.org/contests/visualize-us-election • http://www.visualizing.org/contests/oecd-education- challenge • http://www.visualizing.org/data/browse • 17 october: Show-and-Tell Wednesday 3 October 12
  • 13. Thank you. Now up to you. Wednesday 3 October 12