← Back to team overview

dhis2-devs team mailing list archive

Re: DHIS EventReport Plugin

 

Hi Jan

We are working with the eventchart plugin and want to understand the
following:

- When we specify the "startDate" and "endDate" config params and on the
favorite the relative period is "last 6 months", then we are always getting
the chart rendered with time axis between March and August. The data lying
between these months and also satisfying the 'startDate' and 'endDate'
 criterion gets displayed.
Is this is expected? Does modifying the startDate and endDate not modify
the period axis?

Although the analytics API is honoring the start and end dates properly.
The data that we get from the API call has all the data between the
specified start and end dates. It's the plugin which is not displaying the
data as returned by the API. But displays only between the configured
periodicity of the favorite.

Any help would be much appreciated.

Regards
Vanya

On Thu, Sep 22, 2016 at 2:25 PM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx> wrote:

> Thanks Jan.
>
> Regards
> Vanya
>
> On Thu, Sep 22, 2016 at 1:44 PM, Jan Henrik Øverland <jan@xxxxxxxxx>
> wrote:
>
>> Hi Vanya,
>>
>> Agreed. I'm swamped with work though for 2.25, but let's see what we can
>> do as soon as it's out.
>>
>> Also, the plugin will be upgraded along with the ER refactor for 2.26, so
>> things like what you describe here will definitley be fixed by then.
>>
>> Jan
>>
>> On 22 September 2016 at 08:48, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx>
>> wrote:
>>
>>> Hi Jan
>>>
>>> Thanks for adding the issue.
>>>
>>> Couple of interesting points that you might want to consider.
>>>
>>> Whenever there is an issue in the configuration of the viz object, say
>>> the "pe" dimension is missing. The plugin creates a web alert with the
>>> error message. But when we are using this plugin in the context of a custom
>>> app where on a single web page there might be lot of visualization objects.
>>> Then the web alert really falls out of place. It's nearly impossible for
>>> the end user to make out which chart or report is faulty.
>>>
>>> Ideally it would be good if the plugin could throw an exception or write
>>> the error message on the DOM element. That ways its more intuitive. And I
>>> believe we are doing the same when there are "no values in the system" for
>>> the given viz object config.
>>>
>>> Thoughts?
>>>
>>> Let me know if you need more information.
>>>
>>> Regards
>>> Vanya
>>>
>>>
>>
>>
>> --
>> Jan Henrik Øverland
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org <https://www.dhis2.org/>
>>
>
>
>
> --
> With Regards
> ThoughtWorks Technologies
> Hyderabad
>
> --Stay Hungry Stay Foolish!!
>



-- 
With Regards
ThoughtWorks Technologies
Hyderabad

--Stay Hungry Stay Foolish!!

References