HRI interactive visualizations: some technical notes

Posted by Tapio Nurminen on 14 Nov 2011 | 1 Comments | Tags: , ,

Flo Apps Ltd published interactive visualizations of Helsinki regional data in March. Since then, we have been asked on several occasions to shed more light on the tools we used to create those visualizations. Here we go:

Bigchart

The "Bigchart", as we came to call it, uses Google Motion Chart as its technical platform. The original data was provided by City of Helsinki Urban Facts in Excel format. We converted the data to CSV and imported it into a MySQL database. One of the key issues in using Motion Charts is defining the database table structure. In Helsinki’s case, the database structure was optimized to facilitate easy updates. Numeric values are kept in one table and area names etc. in separate tables.

When used within Motion Chart, data must be restructured. The meaning of each column is first defined to Motion Chart:

data.addColumn('string', 'Alue');
data.addColumn('number', 'Vuosi');
data.addColumn('number', 'Väkiluku yhteensä');

and then data is sent to Motion Chart, row by row, in JSON format:

['049 111 Pohjois-Leppävaara', 2002, 5867, 90, 4, 5, 4235, 43, 19, 24882, 4536, 84, 6, 85, 6, 83,
5, 3407, 60, 13, 42, 8, 32, 15, 'Espoo' ]

Values that differ strongly from the rest of the recordset can create large empty areas in the Motion Chart. Luckily, the Motion Chart can be zoomed by the user by selecting an area (see instructions by Google).

Some values (. and ..) indicated unknown values in the Helsinki data. The Motion Chart interpreted these values as zero which would of course cause the tool to scale abnormally. These values are therefore removed before sending the data to the Motion Chart.

Population Change

This population visualization also uses Google Motion Chart. Its functionality is similar to the Bigchart, but in this case the dataset is smaller.

Map

For the map visualization, we decided to use the OpenStreetMap platform. We had worked a lot with GoogleMaps before but we wanted to get to know OpenStreetMap better. Another issue some people have warned against is the Google Maps license policy which may cause unpleasant surprises in some cases.

In the map visualization, the user must first choose which phenomenon s/he wants to visualize. The map visualization uses the faceted search provided by Mysema Ltd. Data gets cached on our server. If a particular JSON dataset has not been used before, it is fetched via CURL from the JSON-interface provided by Mysema Ltd and gets saved for later reuse.

Helsinki Urban Facts provided us with the KML-files which are used to define the borders of areas. Each geographical area is formatted into a “feature”, which gets its styles dynamically. This way, we can change areas’ background colours as time animation proceeds. Every time the year changes in the animation, the time function sets new values into the array and requests recolouring of each “feature”.

Each data set is split into four numeric ranges. Each value in the data array is compared to these ranges’ border values. As the year changes, if the new value is outside the bounds of the previous range, the area gets a new background colour.


Lähetä kommenttisi

Kommentit

  • I have the pleasure to brief you on our Data Visualization software
    "Trend Compass".

    TC is a new concept in viewing statistics and trends in an animated
    way by displaying in one chart 5 axis (X, Y, Time, Bubble size &
    Bubble color) instead of just the traditional X and Y axis. Discover
    trends hidden in spreadsheets. It could be used in analysis,
    research, presentation etc. In different business sectors, to name a
    few we have Deutsche Bank, NBC Universal, RIM, Vanguard
    Institutional Investor, Ipsos, Princeton University as our clients.

    NBC presentation on TED using Trend Compass exported Videos. Now on
    CNN Money / Fortune (Dec 21st,2010):
    http://tech.fortune.cnn.com/2010/12/21/from-laughing-to-judging-in-fifty-years-the-evolution-of-televised-emotion/

    The following link is for our new Geographical Trend Compass
    (Earthquake in Japan - Mag vs Depth vs Time):
    http://www.epicsyst.com/test/v2/japan-earthquake

    Link on Ads Monitoring on TV Satellite Channels. Pick Duration (Ads
    daily duration) vs Repeat (Ads repetition per day).
    http://www.epicsyst.com/test/v2/tv-monitor/

    Link showing drilling feature (Parent/Child) - Just double-click on any
    bubble:
    http://www.epicsyst.com/test/v2/drilling/

    Link on UK Master Card vs Visa performance :
    http://www.epicsyst.com/test/v2/mastercard_vs_visa/

    Links on Funds:
    http://www.epicsyst.com/test/v2/best_exchange_traded_funds/
    http://www.epicsyst.com/test/v2/us_insurance_funds/
    http://www.epicsyst.com/test/v2/aaim_fund_performance/

    Link on other KPIs :
    http://www.epicsyst.com/test/v2/hospital_performance/
    http://www.epicsyst.com/test/v2/international_insurance/

    Link on Chile's Earthquake (Feb 27th 2010):
    http://www.epicsyst.com/test/v2/EarthQuakeinChile/

    This a link on weather data :
    http://www.epicsyst.com/test/v2/aims/

    This is a bank link to compare Deposits, Withdrawals and numbers of
    Customers for different branches over time ( all in 1 Chart) :
    http://www.epicsyst.com/test/v2/bank-trx/

    Misc Examples :
    http://www.epicsyst.com/test/v2/airline/
    http://www.epicsyst.com/test/v2/stockmarket1/
    http://www.epicsyst.com/test/v2/football/
    http://www.epicsyst.com/test/v2/swinefludaily/
    http://www.epicsyst.com/test/v2/babyboomers/

    This is a project we did with Princeton University on US unemployment :
    http://www.epicsyst.com/main3.swf

    A 3 minutes video presentation of above by Professor Alan Krueger
    Bendheim Professor of Economics and Public Affairs at Princeton
    University and currently Chief Economist at the US Treasury using
    Trend Compass :
    http://epicsyst.com/trendcompass/princeton.aspx?home=1

    You can download a trial version. It has a feature to export
    EXE,PPS,HTML and AVI files. The most impressive is the AVI since you
    can record Audio/Video for the charts you create.

    http://epicsyst.com/trendcompass/FreeVersion/TrendCompassv1.2_DotNet.zip

    All the best.

    Amr Salah
    Trend Compass Team
    Epic Systems
    www.epicsyst.com

    Lähettäjä: Amr Salah, 29/12/2011 11:58am ( sitten)

Tämän sivun kommenttejen RSS-lähde | Kaikkien kommenttien RSS-syöte

Ota yhteyttä




Mainintoja mediassa

Suomen tuhatvuotisen kirjallisen historian alkuvaiheet verkkoon

Kansalliskirjasto julkisti keskiviikkona 28.3.2012 Kirjava keskiaika -verkkoteoksen ja Fragmenta membranea -tietokannan Helsingin yliopiston Tiedekulmassa.

» Kansalliskirjasto 28.03.2012

Suomeen kunniamaininta Maailmanpankin sovelluskisassa

Helsinkiläinen Flo Apps nouti Washington DC:stä kunniamaininnan Maailmanpankin järjestämässä sovelluskilpailussa.

» IT-viikko 18.04.2011

Suomeksi | In English


Soita
0400 607 358
tai kirjoita
meille