← Back to team overview

dhis2-devs team mailing list archive

Re: dhis charts using highcharts and png downloads

 

Hi Jan / Team,

Few additional questions apart from the ones below.

   - Is any other image utility supported apart from png? What is the
   roadmap for this endpoint. Will this endpoint be actively supported by DHIS
   in future releases also?
   - any documentation around this endpoint.

We are waiting on your inputs as we are planning to use this endpoint in
our custom apps.

Thanks

On Mon, Jul 25, 2016 at 3:03 PM, Aamer Mohammed <aamerm@xxxxxxxxxxxxxxxx>
wrote:

> Hi Jan,
>
> This endpoint https://play.dhis2.org/demo/api/svg.png
> <https://play.dhis2.org/dev/api/svg.png> running Batik is able to convert
> svg to png images. We are getting inclined towards using this endpoint in
> our custom apps. Few questions here:
>
>    - Can we specify the size of png image to be generated via the api?
>    - We want to convert report tables(html) to png. So we are embedding
>    the html table as a foreign object in svg. But this endpoint is unable to
>    convert such svg to png. Is this a limitation or is it planned in future
>    releases?
>    - Is there any other DHIS endpoint which converts html tables to
>    images? Our custom app has a functionality wherein the user should be able
>    to export the images/tables to word documents. We do not want to
>    reconstruct the table from the json table data.
>
>
> Thanks
> Aamer.
>
>
> On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed <aamerm@xxxxxxxxxxxxxxxx>
> wrote:
>
>> Hi Jan,
>>
>> Thanks for the response. Couple of clarifications here.
>>
>>    -  Currently, extjs abstractions give out the chart object by passing
>>    the chart id. Would the same be available with highcharts based
>>    abstractions as well? Just give chart id for the highchart based
>>    abstraction and it gives the chart object.
>>    - Would extjs based abstractions be still available after 2.26?
>>
>>
>> Thanks
>> Aamer.
>>
>>
>>
>> On Wed, Jul 13, 2016 at 11:32 PM, Jan Henrik Øverland <jan@xxxxxxxxx>
>> wrote:
>>
>>> Hi Srikanth/Vanya/Aamer,
>>>
>>> Highcharts in the charts app + dashboard plugin is scheduled for 2.26.
>>>
>>> Yes, we will make sure you don't have to call external services to
>>> download the charts as png.
>>>
>>> By the way, we already have this endpoint
>>> https://play.dhis2.org/dev/api/svg.png running Batik to which you can
>>> submit an html form with an "svg" field (svg) and a "filename" field (text).
>>>
>>> You can try this out via the app by going to
>>> https://play.dhis2.org/dev/dhis-web-visualizer -> create a chart ->
>>> download as image and have a look at what is going on in the browser
>>> console.
>>>
>>> Jan
>>>
>>> On 13 July 2016 at 10:13, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>
>>>> HI Aamer,
>>>>
>>>> Just a heads-up that this is holiday time in Norway, so it may take
>>>> some time for you to get a reply.
>>>>
>>>> Knut
>>>>
>>>> On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed <
>>>> aamerm@xxxxxxxxxxxxxxxx> wrote:
>>>>
>>>>> Hi Jan/Bjørn,
>>>>>
>>>>> Any thoughts on roadmap for highcharts based abstractions or in
>>>>> improving quality of the api/charts/data which is giving a png now and is
>>>>> not as good as the high charts generated chart.
>>>>>
>>>>> Any thoughts will be much appreciated.
>>>>>
>>>>>
>>>>> Thanks
>>>>> Aamer.
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak <mark@xxxxxxxxx> wrote:
>>>>>
>>>>>> Hey Vanya,
>>>>>>
>>>>>> I'm not really sure what the status on this is. I think there is a
>>>>>> plan to remove Ext as a dependency from that plugin yes.
>>>>>>
>>>>>> I know you can get the analytics data urls from the charts app.
>>>>>>
>>>>>> I think Jan and/or Bjørn would be able to give you better answer on
>>>>>> the roadmap/status of these things.
>>>>>>
>>>>>> On Mon, Jul 11, 2016 at 3:10 PM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Mark
>>>>>>>
>>>>>>> Would it be possible to provide some insights on this aspect as
>>>>>>> well? We are getting inclined towards using highcharts based abstractions.
>>>>>>> But would like to hear back from you as well.
>>>>>>>
>>>>>>> Any help will be much appreciated.
>>>>>>>
>>>>>>> Regards
>>>>>>> Vanya
>>>>>>>
>>>>>>> On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Mark and Nicolay
>>>>>>>>
>>>>>>>> Could you please provide some information regarding this?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Vanya
>>>>>>>>
>>>>>>>> On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta <
>>>>>>>> srikantk@xxxxxxxxxxxxxxxx> wrote:
>>>>>>>>
>>>>>>>>> Hi Dhis-devs,
>>>>>>>>>
>>>>>>>>> *Future plan of chart.js*
>>>>>>>>>
>>>>>>>>> Is there any future plan to rewrite chart.js using highcharts in
>>>>>>>>> place of extJS.
>>>>>>>>> Currently we have embedded chart service module from interactive
>>>>>>>>> dashboard app into our custom app. To get the high chart object we need
>>>>>>>>> analytical object. Currently we are generating the analytical object using
>>>>>>>>> dash board controller.
>>>>>>>>>
>>>>>>>>> *Dhis api to download high chart as png*
>>>>>>>>>
>>>>>>>>> Currently in interactive dashboard app. When we download the high
>>>>>>>>> chart image as PNG, it is calling to the *http://export.highcharts.com
>>>>>>>>> <http://export.highcharts.com>* instead do we have any api which
>>>>>>>>> does the download as png in the DHIS itself. Or do we have any plans in
>>>>>>>>> improving quality of the api/charts/data which is giving a png now and is
>>>>>>>>> not as good as the high charts generated chart.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Srikanth Katta.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> With Regards
>>>>>>>> ThoughtWorks Technologies
>>>>>>>> Hyderabad
>>>>>>>>
>>>>>>>> --Stay Hungry Stay Foolish!!
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> With Regards
>>>>>>> ThoughtWorks Technologies
>>>>>>> Hyderabad
>>>>>>>
>>>>>>> --Stay Hungry Stay Foolish!!
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>>
>>>>>>
>>>>>> Mark Polak
>>>>>> Software developer, DHIS 2
>>>>>> University of Oslo
>>>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>>> mark@xxxxxxxxx
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Knut Staring
>>>> Dept. of Informatics, University of Oslo
>>>> Norway: +4791880522
>>>> Skype: knutstar
>>>> http://dhis2.org
>>>>
>>>
>>>
>>>
>>> --
>>> Jan Henrik Øverland
>>> Software developer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>
>>
>

Follow ups

References