[openspending-dev] Exporting an aggregation as CSV

Vitor Baptista vitor at vitorbaptista.com
Wed Sep 18 11:55:56 UTC 2013


Hi all,

I'm trying to add a contextual download link in a visualization I'm
developing. It's basically a treemap with 5 drilldowns and many years. I
would like that, when the user is seeing the investiment in Basic
Healthcare in 2012 in his neighborhood's hospital, he'll be able to
download the same data as CSV.

Basically, I would like to do something like
http://openspending.org/api/2/aggregate?dataset=orcamento_publico&drilldown=orgao|uo&cut=time.year:2012&format=csv
and
have the result as a CSV instead of JSON. Is that possible?

Cheers,

Vítor Baptista

Developer  |  http://vitorbaptista.com |
LinkedIn<http://www.linkedin.com/in/vitorbaptista>|
@vitorbaptista <http://twitter.com/vitorbaptista>

The Open Knowledge Foundation <http://okfn.org>

*Empowering through Open Knowledge*

http://okfn.org/  |  @okfn <http://twitter.com/okfn>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/openspending-dev/attachments/20130918/27e25963/attachment.html>


More information about the openspending-dev mailing list