From 1ef7c11171e95a4e5fff8ab1d021c33a02808208 Mon Sep 17 00:00:00 2001 From: Jenny Fung Date: Fri, 1 Sep 2017 15:04:21 -0400 Subject: [PATCH] Enforce whole number percentiles --- src/app/charts/extra-params-components/percentile.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/charts/extra-params-components/percentile.component.ts b/src/app/charts/extra-params-components/percentile.component.ts index 45798307..849cda39 100644 --- a/src/app/charts/extra-params-components/percentile.component.ts +++ b/src/app/charts/extra-params-components/percentile.component.ts @@ -50,7 +50,7 @@ export class PercentileComponent implements AfterViewInit, OnInit { const pctl = form.percentileCtl; if (pctl > 100 || pctl < 1) { return; } this.percentileParamSelected.emit({ - 'percentile': parseInt(pctl) + 'percentile': Math.round(pctl) }); }); }