Skip to content

Commit 2a663b7

Browse files
authored
Fix issues when smoothing value set to 0, it goes back to default 0.6. Tooltip sorting does not work because string mismatching. (#323)
1 parent a1128c9 commit 2a663b7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontend/src/scalars/ui/Chart.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import moment from 'moment';
5555
import {getPluginScalarsScalars} from '../../service';
5656
5757
const originLinesOpacity = 0.3;
58-
const defaultSmoothWeight = 0.6;
5958
const lineWidth = 1.5;
6059
const minQuantile = 0.05;
6160
const maxQuantile = 0.95;
@@ -320,7 +319,7 @@ export default {
320319
321320
transformDataset(seriesData) {
322321
// smooth
323-
this.transformData(seriesData, this.smoothing || defaultSmoothWeight);
322+
this.transformData(seriesData, this.smoothing);
324323
},
325324
326325
/**
@@ -543,11 +542,11 @@ export default {
543542
}
544543
let sortedPoints;
545544
switch (sortingMethod) {
546-
case 'desc':
545+
case 'descending':
547546
sortedPoints = sortBy(points, one => one.item[3]);
548547
sortedPoints.reverse();
549548
break;
550-
case 'asc':
549+
case 'ascending':
551550
sortedPoints = sortBy(points, one => one.item[3]);
552551
break;
553552
case 'nearest':

0 commit comments

Comments
 (0)