38
Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - [email protected] Assistant Director - Center for Web and Data Science Brad Porter - [email protected] Undergrad. Research Assist. - Center for Web and Data Science PNWDS - 2012 University of Washington, Tacoma

Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - [email protected] Assistant Director - Center for Web and

Embed Size (px)

Citation preview

Page 1: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery

David Hazel - [email protected]

Assistant Director - Center for Web and Data Science

Brad Porter - [email protected]

Undergrad. Research Assist. - Center for Web and Data Science

PNWDS - 2012 University of Washington, Tacoma

Page 2: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

10/21/2012 UW Tacoma / WebDataScience.org

Page 3: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• Consistent Look and Feel• Content Management• Modules• Secure and Solid Code Base• Great Community

Why We Use Drupal?

10/21/2012 UW Tacoma / WebDataScience.org

Page 4: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• HTML5• Slick UI• Fast Query Management• Explore Really Big Data• SCALE

But...I want

10/21/2012 UW Tacoma / WebDataScience.org

Page 5: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

So...We turn To

10/21/2012 UW Tacoma / WebDataScience.org

Page 6: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

django

10/21/2012 UW Tacoma / WebDataScience.org

Page 7: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

RoR

10/21/2012 UW Tacoma / WebDataScience.org

Page 8: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

10/21/2012 UW Tacoma / WebDataScience.org

Page 9: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

10/21/2012 UW Tacoma / WebDataScience.org

Page 10: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• Tradeoffs• Drupal vs Custom

The Problem

10/21/2012 UW Tacoma / WebDataScience.org

Page 11: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

World of BIG DATA

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

• Really large data sets• Complex queries• Inconsistent load times• Visualize Data in meaningful ways

Page 12: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Some Real World Examples

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

• DDRS• CHF Risk of Readmission• Adoptopedia

Page 13: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Dietary Data Recording System

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

Page 14: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

CHF Risk of Readmission

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

• No reimbursement for readmission within 30 days

• Examine Factors that Contribute to Readmission

• Better Care• Reduced Costs

Page 15: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Adoptopedia

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

Page 16: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

What do all these have in common

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

Page 17: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

10/21/2012 UW Tacoma / WebDataScience.org

Page 18: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

10/21/2012 UW Tacoma / WebDataScience.org

Page 19: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

OSPI Data Dashboard Project

10/21/2012 UW Tacoma / WebDataScience.org

Center for Web and Data ScienceCenter for Strong Communities & Schools

OSPIState Needs Projects

Page 20: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Lots of Data

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

• 10 Sites across WA State• 100's of Trainings

Page 21: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• Homemade survey systemo MySQL database (LAMP)o How to merge data

Seemingly missing data Hardcoded modifications

Data + Challenges

10/21/2012 UW Tacoma / WebDataScience.org

Page 22: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• Drupal surveyso Separate PostgreSQL databaseo Webform module

Lacking queue system

Data + Challenges Cont.

10/21/2012 UW Tacoma / WebDataScience.org

Page 23: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Data Flow

10/21/2012 UW Tacoma / WebDataScience.org

Standardized questions integrated into Webform

Drive visualizations

Import into external datamart

Page 24: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Visualizing the Data

10/21/2012 UW Tacoma / WebDataScience.org

• Custom modules• pull data from External Datamart• Load JSON into Browser• Visualize the Data

Page 25: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

wds_viz.module

PNWDS - 2012 UW Tacoma / WebDataScience.org 10/21/2012

Page 26: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Why D3.js?

10/21/2012 UW Tacoma / WebDataScience.org

• Transitioning From Flasho Printer Compatibilityo No plugins necessary

• Image Embeddingo Lower Bandwidtho Dynamic Graphs

Page 27: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Pie Chart

10/21/2012 UW Tacoma / WebDataScience.org

Page 28: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Choropleth

10/21/2012 UW Tacoma / WebDataScience.org

Page 29: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Bar Graph

10/21/2012 UW Tacoma / WebDataScience.org

Page 30: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Parallel Coordinates

10/21/2012 UW Tacoma / WebDataScience.org

Page 31: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Implementation / Integration

10/21/2012 UW Tacoma / WebDataScience.org

Page 32: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• Under 40 lines of code

• Completely customizable

Implementation / Integration

10/21/2012 UW Tacoma / WebDataScience.org

Page 33: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Implementation / Integration

10/21/2012 UW Tacoma / WebDataScience.org

Page 34: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Implementation / Integration

10/21/2012 UW Tacoma / WebDataScience.org

Page 35: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• Map is Drawn• Plot svg circles• Calculate x,y = long/lat• Set color palette based on count• Set r = 0• Time series change r

Heat map Constructions

10/21/2012 UW Tacoma / WebDataScience.org

Page 36: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

• Heatmap transition• function changeHeat()

CODE DEMO

10/21/2012 UW Tacoma / WebDataScience.org

Page 37: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Vision: To be the Rosetta Stone for Societal Big Data

Center for Web and Data Science

Page 38: Visualizing Big Data In Drupal Using Data Visualizations to Drive Knowledge Discovery David Hazel - dhazel@uw.edu Assistant Director - Center for Web and

Q&A

10/21/2012 UW Tacoma / WebDataScience.org