Beauty Bar (http://beauty-bar.appspot.com) is a tool to build nice bar charts. This blog shows example charts made with the tool, and gives tips how one can use it.

Wednesday, March 17, 2010

UNdata example



UNdata is United Nations statistical database and it is free to use. As United Nations is a big global institution and have lot of projects with all countries, it needs data to make decisions. Now they have realize that publishing this data might be useful. One can search database and try to understand state of the world. It's fun!

For example if you want to get a nice chart to your page about how much nations spend on education to your home page, you can go UNdata search: http://data.un.org/Default.aspx ... and search for with phrase education or similar. Once you have found some interesting figures, you can use Beauty Bar to build nice bar chart based on those. Like this:

Public expenditure on education as % total government expenditure

What you actually needs to do this, is only to take data from UNdata to text editor and modify it to with following rules. Make data values to text string separated with commas. e.g. 10,20,30. Make titles to text string separated with pipes. e.g. One|Two|Three Choose style from Beauty Bar (http://beauty-bar.appspot.com), in this example we use saved style named "blue-area". Make URL string with Beauty Bar prefix and values. chd is variable for data values, chl for titles and cht for style. You can also use optional parameters chds for range and chs for image size. You should get something like this:


http://beauty-bar.appspot.com/chart?cht=blue-area&chs=300x200&chd=t:15.5,14.5,12.5,10.5,9.6,9.2,9.2&chl=Denmark|Estonia|Finland|France|Germany|Greece|Italy&chds=0,20


Now you can use this URL in your homepage to show chart. Enjoy...

1 comment:

  1. This blog is truly useful to convey overhauled instructive undertakings over web which is truly examination. I discovered one fruitful case of this truth through this blog. I will utilize such data now. โรงงานรับผลิตสบู่

    ReplyDelete

Followers