Hi Dinesh,

This cannot be handled by the charting library level as it plots given data
in a linear scale. Missing data could be a  day, hour, minute or even a
second. It depends on the datetime range of the data. Therefore we need to
handle these at data provider level.

In analytics implementations including ESB analytics, IS Analytics and etc,
this can done at date time picker selection level since there are options
last hour, day, month. Even in custom date ranges we determine aggregation
levels to load from DAS. We could have a configuration to enable or disable
this capability as this is an optional requirement.  At the moment this has
been done in log analyzer charts in data level.

When it comes to generic chart level in the portal wizard, it would be
little bit challenging to generalize this feature as data is dynamic. Date
ranges to be calculated with min and max values. This becomes worse in real
time gadgets as ranges could be drastically change and whole chart needs to
be redrawn with data changes.

Regards,

On Tue, Jun 28, 2016 at 7:22 AM, Chanaka Fernando <[email protected]> wrote:

> Hi Dinesh,
>
> Thank you for bringing this up. I think what you have pointed out needs to
> be corrected (if possible). In ESB use cases, this can be a common scenario
> where servers will get high traffic at a given time period and there can be
> time periods without any traffic. I think how google analytics handles this
> scenario is correct.
>
> Thanks,
> Chanaka
>
>
> On Mon, Jun 27, 2016 at 9:42 PM, Dinesh J Weerakkody <[email protected]>
> wrote:
>
>> Hi,
>>
>> When we add line charts in dashboards, there can be senarios where we
>> don't have any data in the given time period. For example lets say that we
>> following summerized dataset.
>>
>> *Date        RequestCount*
>> Sun          5
>> Mon         3
>> Tue          4
>> Thu          6
>> Fri            5
>> Sat           3
>>
>> Please note that Wednesday is missing in the data set since we don't have
>> any request on that day. If we visualize above dataset in a line chart it
>> will add a Wednesday to the chart without a data point. Chart simply draw
>> the line from Tue to Thu and it feels like Wed is also has data.
>>
>> In Google Analitics this is not the case. Please look at the chart beloe.
>>
>> [image: Inline image 1]
>>
>> In Above chart we have Zero value data points.
>>
>> Can we have the same thing with our dshboard also? Can we achive this by
>> writing a custom JS code for the underlaying JS libraries that are used in
>> the DS?
>>
>> @Chanaka,
>>
>> Please note that this issue is there even in ESB Analytics. Look at the
>> line charts in [1]. I'm not sure whether this behaviour is ok with you or
>> not :)
>>
>> [1]
>> https://docs.wso2.com/display/ESB500/Monitoring+WSO2+ESB+with+WSO2+Analytics
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Senior Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 868676 | E : [email protected] | W : www.wso2.com
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>


-- 

*Tharik Kanaka*

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: [email protected] | Web: www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to