Adding custom data to GapMinder

Does anyone have experience adding their own data to GapMinder , a really cool software that Hans Rosling uses in his TED conversations? I have an array of od objects in JSON that will be easy to show in moving bubbles. It would be great.

I see that in my Ubuntu field there is data in /opt/Gapminder Desktop/share/assets/graphs/world , but I need to find out:

  • How to add a measure to a chart
  • How to add a series of data
  • How to set the time range of data
  • Identify the steps to be taken at each step.

etc.

+4
source share
3 answers

For the record only: if you want to use Gapminder with your own dataset, you need to convert your data in a format suitable for Gapminder. More specifically, looking at assets/graphs/world , you will need:

  • Edit the overview.xml file, which contains the tree structure of all indicators (just copy / paste the entry and enter your own data);
  • Transform your data by copying the structure of xml files in this directory (this is the hard part): you can specify some metadata in the preamble, and then specify your own data series with something like:
    • <t1 m="i20,50.0,99.0,1992" d="90.0, ... ,50.0, ..."/> where i20 is the identifier of the country, followed by the minima and maxima of the series, as well as the year in which he refers.

In my humble opinion, Gapminder is a great application, but definitely need to work more on integration with other datasets. It’s better to use the Google Motion Chart , like you, or the MooGraph ( site and doc ), which, unfortunately, is not as great as Gapminder.

+3
source

@Stefano
The information you provided is very valuable. Is there anywhere a detailed specification of XML files containing data?

In any case, to enrich your answer, I also found that:

overview.xml file

  • The relationship between nations and their identifiers is in this file.
  • The menu structure for selecting indicators is also located in a single file (below) in the <indicatorCategorization> section

XML Data File Structure

  • For each row, the year represents the first year of the series, and then the values ​​follow once a year, separated by a comma.

Grazie
Max

+3
source

I ended up using the Google Motion Chart API . I am done with this .

+2
source

All Articles