dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #02534
Re: Google Motion Chart (Gapminder) connected to DHIS 2 report tables
On Sat, Oct 10, 2009 at 8:50 PM, Hieu Dang Duy
<hieu.hispvietnam@xxxxxxxxx>wrote:
> Overview codes, it's really exciting and attractive ! But not understand
> this motion chart too much ...
>
>
Glad you like it, Hieu! I agree with you that my particular example is not
very intuitive, and probably needs more tweaking - I just didn't find it
meaningful to take this much further now, as it rather has to be integrated
with the DHIS 2 user interface - and use the DHIS 2 API (or webservices)
rather than php.
Note that you can configure it much more than I did in the state variable at
the end of the code. To see possible options, select a view you like in the
Chart, then click on the wrench symbol in the lower right corner and then
click Advanced (below to the left). This will display particular selections,
e.g. like this:
{"dimensions":{"iconDimensions":["dim0"]},"nonSelectedAlpha":0.9,"orderedByX":false,"xZoomedDataMax":106.79433694857032,"iconType":"BUBBLE","showTrails":true,"uniColorForNonSelected":false,"yLambda":1,"duration":{"timeUnit":"D","multiplier":1},"yZoomedDataMax":38.243011456628494,"time":"2008-04-01","sizeOption":"_UNISIZE","xLambda":1,"xZoomedDataMin":88.9394191000742,"yZoomedDataMin":-5.012307692307691,"stateVersion":3,"xAxisOption":"2","playDuration":15,"iconKeySettings":[{"trailStart":"2008-01-17T12:32:38.400","key":{"dim0":"Kenema"}}],"yAxisOption":"3","yZoomedIn":true,"xZoomedIn":true,"orderedByY":false,"colorOption":"4"}
Knut
> On Sat, Oct 10, 2009 at 11:41 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
>
>> I have quickly set up a proof of concept (using PHP) for displaying DHIS 2
>> indicators in Google Motion Charts here:
>> http://97.107.142.53/mc/index.php
>>
>> <http://97.107.142.53/mc/index.php>I don't know (and doubt) that this
>> will work offline (the current solution relies on Google's servers to
>> provide a Javascript API and serve the Flash app).
>>
>> Reference:
>>
>> http://code.google.com/apis/visualization/documentation/gallery/motionchart.html#Motion_Chart_initial_state
>>
>> I attach my PHP code, which I hope can serve as inspiration for someone on
>> our team (India? VN?) to implement the same functionality as a DHIS web
>> module in Java.
>>
>> Knut
>>
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs>
>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs>
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Hieu.HISPVietnam
> Good Health !
>
--
Cheers,
Knut Staring
References