Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-15 Thread Sultanahamar Mohammad
Thanks for the patience and answering at this late hour of Friday night. We will try these. Have a nice weekend. Regards, Sultan Ahamar. On Sat, Sep 16, 2017 at 12:05 AM, Edoardo Sabadelli wrote: > As I mentioned before, all 4 apps support Highcharts plugin from 2.27. > >

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-15 Thread Edoardo Sabadelli
As I mentioned before, all 4 apps support Highcharts plugin from 2.27. See these examples (for 2.28): https://github.com/dhis2/charts-app/blob/master/plugin.html https://github.com/dhis2/pivot-tables-app/blob/master/plugin.html https://github.com/dhis2/event-charts-app/blob/master/plugin.html

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-15 Thread Sultanahamar Mohammad
Does this mean that highcharts plugin for event charts and event reports is not available as of now even for 2.27 & 2.28? We want to migrate to highcharts when all 4 types of viz objects are supported through the respective plugins and hence the question. If they are not yet available could you

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-15 Thread Edoardo Sabadelli
For event charts and event reports in 2.26 it should work with the old plugins. See https://github.com/dhis2/dhis2-core/blob/2.26/dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/plugin.html for an example. Using relative period dates should be possible by overriding the

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-15 Thread Srikanth Katta
Hi Edoardo, We have tried 2.26 charts and tables plugins of high chart library, they are working with relative period date also. But we were not able to use them for event charts and event reports. Could you please point us to those plugins. Thanks, Srikanth Katta. On Thu, Sep 14, 2017 at 1:55

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-14 Thread Edoardo Sabadelli
Yes, apart from the aforementioned errors in the documentation which are going to be fixed, you can read about using plugins here: https://docs.dhis2.org/master/en/developer/html/webapi_plugins.html#webapi_chart_plugin You can also check these examples in the apps repos:

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-14 Thread Sultanahamar Mohammad
Hi Edoardo, Do we have some documentation across this chartPlugin.load function. We are using 2.26 and we are planning to upgrade as well to 27. Regards, Sultan Ahamar. On Thu, Sep 14, 2017 at 1:09 PM, Edoardo Sabadelli wrote: > It also depends on which version of DHIS2 you

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-14 Thread Edoardo Sabadelli
It also depends on which version of DHIS2 you are running. The chartPugin.load() syntax is available for all 4 apps from 2.27. Before that, Data Visualizer and Pivot Table plugin should work with chartPlugin.load() (at least from 2.25), while Event Visualizer and Event Reports need the old

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-14 Thread Sultanahamar Mohammad
Hi Edoardo, Below is the kind of code that we used for EXTJS based plugins. We want to understand the same for Highcharts based plugins. DHIS.getChart({ url: dhisUrl, el: chart.id, id: chart.id, type: chart.type, relativePeriodDate: PeriodGeneratorService.getNextPeriod(chart.relativePeriods,

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-14 Thread Edoardo Sabadelli
I understand. One way would be to save a new favorite with the desired relative period date and load that favorite in the script. If you want to pass the chart configuration directly in the script, it would be helpful if you can post the code you are using. I'll fix the example in the

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-14 Thread Sultanahamar Mohammad
Hi Edoardo, This example talks about loading existing charts, but what we want is to load them but use a different relative time period. For example if a chart has time period last 6 months then, it would load last six months of data (aug, jul, jun, may, apr, feb 2017) but what we want is to

Re: [Dhis2-users] [Dhis2-devs] High charts developer guide.

2017-09-14 Thread Edoardo Sabadelli
Hello! It seems that the example in the documentation (https://docs.dhis2.org/master/en/developer/html/webapi_plugins.html#webapi_chart_plugin) is incomplete. The instruction for actually loading the favorite/custom chart config is missing: This is the command: chartPlugin.load(r1, r2); Have