juttle / juttle-viz

Juttle Visualization Library
Apache License 2.0
11 stars 4 forks source link

Timechart overlayTime is broken when fed from `read adapter` #86

Open dmehra opened 8 years ago

dmehra commented 8 years ago

This may not be a juttle-viz bug but rather, an adapter bug, filing here for investigation.

When the program reads from elastic and feeds data into timechart with -timeOverlay, for example with 1-year duration, the resulting chart has time axis for all 10 years instead of the desired 1 year. Somehow the time series are all present and each spans all 10 years (which shouldn't even be possible...)

read elastic -from :2005-01-01: -to :2015-01-01:
| reduce -every :month: value=count()
| view timechart -duration :1 year: -overlayTime true

emit with that same interval is not having the same problem

emit -from :2005-01-01: -to :2015-01-01: -every :day:
| reduce -every :month: value=count()
| view timechart -duration :1 year: -overlayTime true