← Back to team overview

dhis2-devs team mailing list archive

Re: dhis charts using highcharts and png downloads

 

On Mon, Aug 1, 2016 at 10:43 AM, Jan Henrik Øverland <jan@xxxxxxxxx> wrote:

>
>    - Can we specify the size of png image to be generated via the api?
>
> Not at the moment, but that could possibly be added to the backend -
> Morten?
>

Hi

The /api/24/charts/ID/data.png API supports the following parameters:
date - for changing the set period
ou - for changing set ou
width - width of image
height - height of image
attachment - true/false should it be sent as content disposition attachment

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

References