Skip to content
Permalink
Browse files

[IT-2780] Remove null values before calculating percentile value

* TimeSeriesChart: Now with style 😎

* Card background
* Applied colors to axis
* Y-Axis ticks over complete with
* X-Axis labels with linebreaks

* TimeSeriesChart: Added y-axis description text

* TimeSeries: Added missing i18n text

* [IT-2780] Remove null values before calculating percentile value
  • Loading branch information...
DanielSteger authored and finnmartens committed Sep 11, 2019
1 parent 92c0146 commit 27a30dacb23f4173f5f3ebd789813075a679a54b
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/groovy/de/iteratec/osm/result/dao/query/AggregationUtil.groovy
@@ -60,6 +60,7 @@ class AggregationUtil {
}

static def getPercentile(List<Number> data, int percentage) {
data = data.findAll {it != null}
int index = (data.size() * (percentage.toFloat() / 100f)).toInteger()
index = Math.min(data.size() - 1, Math.max(0, index))
return getPercentileByIndex(data, index)

0 comments on commit 27a30da

Please sign in to comment.
You can’t perform that action at this time.