SlideShare una empresa de Scribd logo
1 de 24
Once Upon A Datum: Graphing Crime Incidents with Google Charts – “The Rapid Fire Version” Michelle Minkoff, Interactive Producer, The Associated Press
Where to get resources Bit.ly/onagraphingcrimestats Working sample These slides Formatted data, so you can play along Tutorial walkthrough Cheat sheat with other charting tips/tricks to know Find me to exchange ideas/ask questions/point out errors, etc.  Best way is @michelleminkoff on Twitter or meminkoff@gmail.com.
Crime stats released this week Often, developing charts is done too fast to be done well, or done well, but not at deadline speed Prepare for a story Data released, what to do? Graphs help you report, and tell a story. Go to FBI crime stats page: http://www.fbi.gov/about-us/cjis/ucr/crime-in-the-u.s/2010/crime-in-the-u.s.-2010
How did categories of crime change (if at all)?
What we’re after: michelleminkoff.com/crime-stats
Ah, deadline! What graphing library to use? What is a graphing library? Tradeoff of flexibility/difficulty Protovis Raphael Flot Google Image Charts Google Chart Tools (prev. Google Visualization API)
Get the data Download an Excel file
Format the data in Excel
Excel > JSON Use Mr. Data Converter - http://shancarter.com/data_converter/ Paste data in top box
Excel > JSON Select JSON > Row Arrays Copy text that is returned to you
JSON > JSON file Save that formatted data!
Basic HTML
Souped-up HTML
Quick CSS
Draw the graph
Draw the graph (2/2)
How do I choose my colors?
Format numbers
Insert it in HTML As easy as bringing that code in and calling the drawVisualization() function from <script> tags in your CMS, and including the div name But I’m not satisfied! I want to switch states – enter the change fuction
Changing states
Put it all together
How do I get it in my CMS/on my website? CMS: Just need to load API The inline script tag, loading the chart you’re using Code that’s in our drawVisualization() function A div with the same id that’s referred to in drawVisualization() Whole page: Upload a four-file structure in same folder, like what we created today
Voila!	 And there you have it! Thanks!

Más contenido relacionado

Similar a Charting Crime Categories - Easy(ier) Programming w/Google Chart Tools - ONA 2011 Boston

Scraping Handout
Scraping HandoutScraping Handout
Scraping HandoutCindy Royal
 
Week 5 - Interactive News Editing and Producing
Week 5 - Interactive News Editing and ProducingWeek 5 - Interactive News Editing and Producing
Week 5 - Interactive News Editing and Producingkurtgessler
 
Almost Scraping: Web Scraping without Programming
Almost Scraping: Web Scraping without ProgrammingAlmost Scraping: Web Scraping without Programming
Almost Scraping: Web Scraping without ProgrammingMichelle Minkoff
 
Treading the cowpaths of the information superhighway.
Treading the cowpaths of the information superhighway.Treading the cowpaths of the information superhighway.
Treading the cowpaths of the information superhighway.Christian Heilmann
 
Bridging data analysis and interactive visualization
Bridging data analysis and interactive visualizationBridging data analysis and interactive visualization
Bridging data analysis and interactive visualizationNacho Caballero
 
Designing Great Forms
Designing Great FormsDesigning Great Forms
Designing Great FormsJosh Fraser
 
Cis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universityCis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universitylhkslkdh89009
 
Data Visualisation Design Workshop #UXbne
Data Visualisation Design Workshop #UXbneData Visualisation Design Workshop #UXbne
Data Visualisation Design Workshop #UXbneCam Taylor
 
Mashups in the Information Technology Classroom
Mashups in the Information Technology ClassroomMashups in the Information Technology Classroom
Mashups in the Information Technology ClassroomMark Frydenberg
 
MIT Big Data Explorers - presentation by Daniel Burseth
MIT Big Data Explorers - presentation by Daniel BursethMIT Big Data Explorers - presentation by Daniel Burseth
MIT Big Data Explorers - presentation by Daniel BursethDon Dark
 
Microformats 101 Workshop
Microformats 101 WorkshopMicroformats 101 Workshop
Microformats 101 WorkshopKelley Howell
 
XPages - The Ties That Bind
XPages - The Ties That BindXPages - The Ties That Bind
XPages - The Ties That BindMichael McGarel
 
Google Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsGoogle Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsSilvia Alongi
 
Drew Conway: A Social Scientist's Perspective on Data Science
Drew Conway: A Social Scientist's Perspective on Data ScienceDrew Conway: A Social Scientist's Perspective on Data Science
Drew Conway: A Social Scientist's Perspective on Data Sciencemortardata
 
Structured Data and Semantic SEO
Structured Data and Semantic SEOStructured Data and Semantic SEO
Structured Data and Semantic SEOMatthew Brown
 

Similar a Charting Crime Categories - Easy(ier) Programming w/Google Chart Tools - ONA 2011 Boston (20)

Scraping Handout
Scraping HandoutScraping Handout
Scraping Handout
 
Week 5 - Interactive News Editing and Producing
Week 5 - Interactive News Editing and ProducingWeek 5 - Interactive News Editing and Producing
Week 5 - Interactive News Editing and Producing
 
Almost Scraping: Web Scraping without Programming
Almost Scraping: Web Scraping without ProgrammingAlmost Scraping: Web Scraping without Programming
Almost Scraping: Web Scraping without Programming
 
Web scrapingpanel
Web scrapingpanelWeb scrapingpanel
Web scrapingpanel
 
Treading the cowpaths of the information superhighway.
Treading the cowpaths of the information superhighway.Treading the cowpaths of the information superhighway.
Treading the cowpaths of the information superhighway.
 
Data Sharing
Data Sharing Data Sharing
Data Sharing
 
Data Strategy
Data StrategyData Strategy
Data Strategy
 
Bridging data analysis and interactive visualization
Bridging data analysis and interactive visualizationBridging data analysis and interactive visualization
Bridging data analysis and interactive visualization
 
Designing Great Forms
Designing Great FormsDesigning Great Forms
Designing Great Forms
 
Cis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universityCis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry university
 
Personal Work
Personal WorkPersonal Work
Personal Work
 
Lecture7
Lecture7Lecture7
Lecture7
 
Data Visualisation Design Workshop #UXbne
Data Visualisation Design Workshop #UXbneData Visualisation Design Workshop #UXbne
Data Visualisation Design Workshop #UXbne
 
Mashups in the Information Technology Classroom
Mashups in the Information Technology ClassroomMashups in the Information Technology Classroom
Mashups in the Information Technology Classroom
 
MIT Big Data Explorers - presentation by Daniel Burseth
MIT Big Data Explorers - presentation by Daniel BursethMIT Big Data Explorers - presentation by Daniel Burseth
MIT Big Data Explorers - presentation by Daniel Burseth
 
Microformats 101 Workshop
Microformats 101 WorkshopMicroformats 101 Workshop
Microformats 101 Workshop
 
XPages - The Ties That Bind
XPages - The Ties That BindXPages - The Ties That Bind
XPages - The Ties That Bind
 
Google Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsGoogle Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google Analytics
 
Drew Conway: A Social Scientist's Perspective on Data Science
Drew Conway: A Social Scientist's Perspective on Data ScienceDrew Conway: A Social Scientist's Perspective on Data Science
Drew Conway: A Social Scientist's Perspective on Data Science
 
Structured Data and Semantic SEO
Structured Data and Semantic SEOStructured Data and Semantic SEO
Structured Data and Semantic SEO
 

Último

Rohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for JusticeRohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for JusticeAbdulGhani778830
 
Foreign Relation of Pakistan with Neighboring Countries.pptx
Foreign Relation of Pakistan with Neighboring Countries.pptxForeign Relation of Pakistan with Neighboring Countries.pptx
Foreign Relation of Pakistan with Neighboring Countries.pptxunark75
 
Geostrategic significance of South Asian countries.ppt
Geostrategic significance of South Asian countries.pptGeostrategic significance of South Asian countries.ppt
Geostrategic significance of South Asian countries.pptUsmanKaran
 
Political-Ideologies-and-The-Movements.pptx
Political-Ideologies-and-The-Movements.pptxPolitical-Ideologies-and-The-Movements.pptx
Political-Ideologies-and-The-Movements.pptxSasikiranMarri
 
16042024_First India Newspaper Jaipur.pdf
16042024_First India Newspaper Jaipur.pdf16042024_First India Newspaper Jaipur.pdf
16042024_First India Newspaper Jaipur.pdfFIRST INDIA
 
15042024_First India Newspaper Jaipur.pdf
15042024_First India Newspaper Jaipur.pdf15042024_First India Newspaper Jaipur.pdf
15042024_First India Newspaper Jaipur.pdfFIRST INDIA
 
Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.NaveedKhaskheli1
 
IndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global NewsIndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global NewsIndiaWest2
 
57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdf57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdfGerald Furnkranz
 

Último (9)

Rohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for JusticeRohan Jaitley: Central Gov't Standing Counsel for Justice
Rohan Jaitley: Central Gov't Standing Counsel for Justice
 
Foreign Relation of Pakistan with Neighboring Countries.pptx
Foreign Relation of Pakistan with Neighboring Countries.pptxForeign Relation of Pakistan with Neighboring Countries.pptx
Foreign Relation of Pakistan with Neighboring Countries.pptx
 
Geostrategic significance of South Asian countries.ppt
Geostrategic significance of South Asian countries.pptGeostrategic significance of South Asian countries.ppt
Geostrategic significance of South Asian countries.ppt
 
Political-Ideologies-and-The-Movements.pptx
Political-Ideologies-and-The-Movements.pptxPolitical-Ideologies-and-The-Movements.pptx
Political-Ideologies-and-The-Movements.pptx
 
16042024_First India Newspaper Jaipur.pdf
16042024_First India Newspaper Jaipur.pdf16042024_First India Newspaper Jaipur.pdf
16042024_First India Newspaper Jaipur.pdf
 
15042024_First India Newspaper Jaipur.pdf
15042024_First India Newspaper Jaipur.pdf15042024_First India Newspaper Jaipur.pdf
15042024_First India Newspaper Jaipur.pdf
 
Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.Global Terrorism and its types and prevention ppt.
Global Terrorism and its types and prevention ppt.
 
IndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global NewsIndiaWest: Your Trusted Source for Today's Global News
IndiaWest: Your Trusted Source for Today's Global News
 
57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdf57 Bidens Annihilation Nation Policy.pdf
57 Bidens Annihilation Nation Policy.pdf
 

Charting Crime Categories - Easy(ier) Programming w/Google Chart Tools - ONA 2011 Boston

  • 1. Once Upon A Datum: Graphing Crime Incidents with Google Charts – “The Rapid Fire Version” Michelle Minkoff, Interactive Producer, The Associated Press
  • 2. Where to get resources Bit.ly/onagraphingcrimestats Working sample These slides Formatted data, so you can play along Tutorial walkthrough Cheat sheat with other charting tips/tricks to know Find me to exchange ideas/ask questions/point out errors, etc. Best way is @michelleminkoff on Twitter or meminkoff@gmail.com.
  • 3. Crime stats released this week Often, developing charts is done too fast to be done well, or done well, but not at deadline speed Prepare for a story Data released, what to do? Graphs help you report, and tell a story. Go to FBI crime stats page: http://www.fbi.gov/about-us/cjis/ucr/crime-in-the-u.s/2010/crime-in-the-u.s.-2010
  • 4.
  • 5. How did categories of crime change (if at all)?
  • 6. What we’re after: michelleminkoff.com/crime-stats
  • 7. Ah, deadline! What graphing library to use? What is a graphing library? Tradeoff of flexibility/difficulty Protovis Raphael Flot Google Image Charts Google Chart Tools (prev. Google Visualization API)
  • 8. Get the data Download an Excel file
  • 9. Format the data in Excel
  • 10. Excel > JSON Use Mr. Data Converter - http://shancarter.com/data_converter/ Paste data in top box
  • 11. Excel > JSON Select JSON > Row Arrays Copy text that is returned to you
  • 12. JSON > JSON file Save that formatted data!
  • 17. Draw the graph (2/2)
  • 18. How do I choose my colors?
  • 20. Insert it in HTML As easy as bringing that code in and calling the drawVisualization() function from <script> tags in your CMS, and including the div name But I’m not satisfied! I want to switch states – enter the change fuction
  • 22. Put it all together
  • 23. How do I get it in my CMS/on my website? CMS: Just need to load API The inline script tag, loading the chart you’re using Code that’s in our drawVisualization() function A div with the same id that’s referred to in drawVisualization() Whole page: Upload a four-file structure in same folder, like what we created today
  • 24. Voila! And there you have it! Thanks!