Plotting data from a CSV file
A common format to export and distribute datasets is the Comma-Separated Values (CSV) format. For example, spreadsheet applications allow us to export a CSV from a working sheet, and some databases also allow for CSV data export. Additionally, it's a common format to distribute datasets on the Web.
In this example, we'll be plotting the evolution of the world's population divided by continents, between 1950 and 2050 (of course they are predictions), using a new type of graph: bars stacked.
Using the data available at http://www.xist.org/earth/pop_continent.aspx (that fetches data from the official UN data at http://esa.un.org/unpp/index.asp), we have prepared the following CSV file:
Continent,1950,1975,2000,2010,2025,2050 Africa,227270,418765,819462,1033043,1400184,1998466 Asia,1402887,2379374,3698296,4166741,4772523,5231485 Europe,547460,676207,726568,732759,729264,691048 Latin America,167307,323323,521228,588649,669533,729184 Northern America,171615,242360...