This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kibble.git
commit e720204b1dfcbef7658dc6d6a471e69871b65aa3 Author: Daniel Gruno <humbed...@apache.org> AuthorDate: Fri Aug 3 15:54:03 2018 +0200 accept KPE data as well --- ui/js/coffee/charts_linechart.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/js/coffee/charts_linechart.coffee b/ui/js/coffee/charts_linechart.coffee index 969c53d..69ecb7f 100644 --- a/ui/js/coffee/charts_linechart.coffee +++ b/ui/js/coffee/charts_linechart.coffee @@ -48,7 +48,7 @@ charts_linechart = (obj, data, options) -> ] # Get all timestamps - + xts = {} for el in data.timeseries axisData.x = { @@ -57,7 +57,7 @@ charts_linechart = (obj, data, options) -> format: dateFormat } } - + ndate = new Date(parseInt(el.date)*1000.0) ts[0].push(ndate) for k, v of el @@ -67,7 +67,7 @@ charts_linechart = (obj, data, options) -> if xts[k] == undefined xts[k] = [] xts[k].push(v) - + for key, val of xts xx = [key] for el in val @@ -76,10 +76,10 @@ charts_linechart = (obj, data, options) -> asList.push(key) asTypes[key] = linetype a++ - + asDataArray = ts else - for k, v of data.counts + for k, v of (data.counts||data.phrases) asList.push(k) asTypes[k] = 'bar' tmpArray = [k]