DSPL Tutorial: First Contact
Revision as of 10:52, 3 March 2011 by Thiebaut (talk | contribs) (Created page with "--~~~~--D. Thiebaut 16:01, 18 April 2010 (UTC) ---- {| | width="40%" | __TOC__ | <bluebox> This is a first attempt at creating a data visualization using Google...")
--D. Thiebaut 10:52, 3 March 2011 (EST)--D. Thiebaut 16:01, 18 April 2010 (UTC)
This is a first attempt at creating a data visualization using Google's DSPL language realeased in Feb. 2011. |
References
- The main reference for this example is Google's own tutorial: DSPL Tutorial
Step 1: Read!
- Read Google's tutorial.
- The important elements to understand are that of concept, slice, and table
Step 2: Our Data
- As an example, let's assume that we want to plot the enrollment in Computer Science across several years, in 100-level classes on one hand, and 200 and 300 level classes on another hand. The data in CSV form looks like this:
department, year, enrollment1, enrollment2 CSC, 1986, 250, 375 CSC, 1987, 200, 320 CSC, 1988, 150, 260 CSC, 1989, 120, 235 CSC, 1990, 150, 260 CSC, 1991, 155, 250 CSC, 1992, 150, 245 CSC, 1993, 175, 300 CSC, 1994, 210, 350 CSC, 1995, 240, 360 CSC, 1996, 280, 400 CSC, 1997, 255, 395 CSC, 1998, 230, 375 CSC, 1999, 260, 420 CSC, 2000, 255, 405 CSC, 2001, 265, 420 CSC, 2002, 200, 340 CSC, 2003, 190, 290 CSC, 2004, 120, 210 CSC, 2005, 130, 190 CSC, 2006, 125, 160 CSC, 2007, 135, 200 CSC, 2008, 140, 240 CSC, 2009, 135, 245 CSC, 2010, 190, 265 CSC, 2011, 150, 275
- Enrollment1 is for 100-level classes, Enrollment2 for the 200 and 300 level classes. (Note: These data are not at all accurate or representative and are used solely for the purpose of illustration.)