[wdmmg-dev] WDMMG Uganda on guardian.co.uk

Mark Brough mark.brough at publishwhatyoufund.org
Fri Aug 26 15:19:45 UTC 2011


Hi Martin, Gregor and Rufus,



I’ve been in touch with someone at the Guardian about
Uganda<http://www.publishwhatyoufund.org/testarea/uganda.htm>– they
love it and they are very keen to show it on
guardian.co.uk. *We are considering launching it at the end of September /
start of October.*



To do this, the biggest thing we would need is to be able to *switch between
the years properly* – rather than the dodgy way I made it work at the
moment! It would be nice if the bubbles would resize when the year changed –
rather than just reloading the page – but if that doesn’t work then just
reloading the page would be fine as well.



They are happy to show just the visualisation itself, but I think it would
be nice to at least be able to link to the data on OpenSpending. I think in
order to do this *we would need to have the visualisation on the same page
as the data* otherwise it wouldn’t make much sense.



Also, for the Guardian website, they’d like:

·         The amounts in Dollars rather than UGX

o   the data is in both – in the columns `amount` (which is UGX) and
`amount_dollars`

o   we could perhaps just convert the values to Dollars in the JavaScript?
Alternatively, we could just change the mapping and reload the data into
OpenSpending, perhaps as an additional dataset to the UGX version?

·         Change “More” bubble to “Other”

·         To know what how we’d like it to be credited – just Publish What
You Fund and the Open Knowledge Foundation? Or if we’d like to use names?



Martin: perhaps it would be good to have a call about this early next week?
Very keen to get all of this finished off now. We are meeting on Wednesday
to discuss our launch proposals, so it would be good to talk about this
before then.



Thanks,

Mark





--
Mark Brough
Research Officer, Publish What You Fund
*New Address: *Suite 1A, 2nd Floor, Royal London House, 22-25 Finsbury
Square, London. EC2A 1DX, UK

*New Tel*: +44 20 7920 6401

Mobile: +44 7817 600 835
Skype: mark-brough
Mark.Brough at PublishWhatYouFund.org


www.PublishWhatYouFund.org <http://www.publishwhatyoufund.org/>
twitter at aidtransparency



*From:* Mark Brough [mailto:mark.brough at publishwhatyoufund.org]
*Sent:* 03 August 2011 15:58
*To:* 'Gregor Aisch'
*Cc:* 'wdmmg-dev at lists.okfn.org'; 'rufus.pollock at okfn.org'
*Subject:* Uganda visualisation - changing the years



Hi Gregor, all



We think the visualisation and data now looks great and is ready to share
with the Ugandan MoF, so hopefully we will be able to send it off today.



You can see the visualisation here:

http://www.publishwhatyoufund.org/testarea/uganda.htm



I’ve done something pretty hacky and janky right now to enable you to switch
between the years – by adding an additional namespace type thing (^) onto
the hash. This requires the page to be reloaded in a new window. I didn’t
want to delve into bubbletree.js (which I’d have thought is the place this
should really be dealt with).



So, I just added this before `new OpenSpending.Aggregator` is called:







                var year;

                function setYear(hash) {

                                if (hash) {

                                                year = hash.substr(3,4);


$('#uganda-'+year).addClass('selected');

                                } else {

                                                year = '2005';


$('#uganda-'+year).addClass('selected');

                                }

                                if (year == 'aid-') {

                                                year = '2005';


$('#uganda-'+year).addClass('selected');

                                }

                };

                $.history.init(setYear);







The cut is then set as ‘year:’+year



I also altered aggregation.js to allow you to define the order in the API
call, although I’m not sure that’s actually working.



I know there’s a much better way of doing this, but thought it might be good
to think about in the context of combining the visualisation and the data.



Thanks,

Mark





--
Mark Brough
Research Officer, Publish What You Fund
*New Address: *Suite 1A, 2nd Floor, Royal London House, 22-25 Finsbury
Square, London. EC2A 1DX, UK

*New Tel*: +44 20 7920 6401

Mobile: +44 7817 600 835
Skype: mark-brough
Mark.Brough at PublishWhatYouFund.org


www.PublishWhatYouFund.org <http://www.publishwhatyoufund.org/>
twitter at aidtransparency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/openspending-dev/attachments/20110826/3bfd62ef/attachment.html>


More information about the openspending-dev mailing list