dhis charts using highcharts and png downloads

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 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.

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@thoughtworks.com 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 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!!

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@thoughtworks.com 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@thoughtworks.com 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 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!!

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@thoughtworks.com 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@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

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@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

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@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

Hi Jan,

This endpoint https://play.dhis2.org/demo/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@thoughtworks.com 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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

Hi Jan,

Can we specify a date as query parameter which will the basis for the relative periods in extJS based abstractions.

for example:

A chart is configured for getting data for last 12 months. I want to get data from jan 2016 to jan 2015. Can we specify the starting time period as Jan 2016 along with chart id.

Thanks

···

On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed aamerm@thoughtworks.com 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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

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@thoughtworks.com wrote:

Hi Jan,

This endpoint https://play.dhis2.org/demo/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@thoughtworks.com 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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

Hi Team,

Any updates on the below questions?

···

On Tue, Jul 26, 2016 at 5:07 PM, Aamer Mohammed aamerm@thoughtworks.com wrote:

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@thoughtworks.com wrote:

Hi Jan,

This endpoint https://play.dhis2.org/demo/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@thoughtworks.com 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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

Hi Aamer

Jan is currently away on vacation, he will be back next week.

···

On Fri, Jul 29, 2016 at 1:47 PM, Aamer Mohammed aamerm@thoughtworks.com wrote:

Hi Team,

Any updates on the below questions?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, Jul 26, 2016 at 5:07 PM, Aamer Mohammed aamerm@thoughtworks.com wrote:

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@thoughtworks.com wrote:

Hi Jan,

This endpoint https://play.dhis2.org/demo/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@thoughtworks.com 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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

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

···

On Mon, Aug 1, 2016 at 10:43 AM, Jan Henrik Øverland <jan@dhis2.org> 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?

--
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo

Hi Jan,

Any updates on below query as well?

···

On Tue, Jul 26, 2016 at 4:06 PM, Srikanth Katta srikantk@thoughtworks.com wrote:

Hi Jan,

Can we specify a date as query parameter which will the basis for the relative periods in extJS based abstractions.

for example:

A chart is configured for getting data for last 12 months. I want to get data from jan 2016 to jan 2015. Can we specify the starting time period as Jan 2016 along with chart id.

Thanks

On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed aamerm@thoughtworks.com 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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!

Hi,

In ExtJs abstractions when we mention the ‘relativePeriodDate’ attribute while fetching the aggregate charts and tables, it is fetching us the expected data.

image

In the above code we mentioned the relative Period date as Jan 2016 and relative periods as LAST_3_MONTHS. Then it gives the chart data for Oct 2015, Nov 2015, Dec 2016.

But for event charts and event report based abstractions relative period date attribute is not working. As a workaround we are specifying the periods to be fetched in the period dimension attribute.

image

In the above code we mentioned the period dimensions as Aug 2016, sept 2016. Then it fetches the event report data for these months only.

Could you suggest if this is the correct approach for fetching the relative data in case of both aggregate and event related data.

Also we want to know if there are any plans for supporting ‘relativePeriodDate’ attribute for event report based abstractions in near future?

Thanks

···

On Tue, Aug 2, 2016 at 4:50 PM, Jan Henrik Øverland jan@dhis2.org wrote:

Can we specify a date as query parameter which will the basis for the relative periods in extJS based abstractions.

for example:

A chart is configured for getting data for last 12 months. I want to get data from jan 2016 to jan 2015. Can we specify the starting time period as Jan 2016 along with chart id.

No, we don’t support this by now unfortunately.

On 2 August 2016 at 07:37, Aamer Mohammed aamerm@thoughtworks.com wrote:

Hi Jan,

Any updates on below query as well?


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Tue, Jul 26, 2016 at 4:06 PM, Srikanth Katta srikantk@thoughtworks.com wrote:

Hi Jan,

Can we specify a date as query parameter which will the basis for the relative periods in extJS based abstractions.

for example:

A chart is configured for getting data for last 12 months. I want to get data from jan 2016 to jan 2015. Can we specify the starting time period as Jan 2016 along with chart id.

Thanks

On Thu, Jul 14, 2016 at 4:57 PM, Aamer Mohammed aamerm@thoughtworks.com 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@dhis2.org 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@gmail.com 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


Jan Henrik Øverland

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

On Wed, Jul 13, 2016 at 9:23 AM, Aamer Mohammed aamerm@thoughtworks.com 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.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

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

On Mon, Jul 11, 2016 at 8:15 PM, Mark Polak mark@dhis2.org 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@thoughtworks.com 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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

On Thu, Jun 30, 2016 at 5:23 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Mark and Nicolay

Could you please provide some information regarding this?

Regards

Vanya


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

On Tue, Jun 28, 2016 at 5:14 PM, Srikanth Katta srikantk@thoughtworks.com 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 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!!