未验证 提交 2a663b78 编写于 作者: N Nicky Chan 提交者: GitHub

Fix issues when smoothing value set to 0, it goes back to default 0.6. Tooltip...

Fix issues when smoothing value set to 0, it goes back to default 0.6. Tooltip sorting does not work because string mismatching. (#323)
上级 a1128c9b
...@@ -55,7 +55,6 @@ import moment from 'moment'; ...@@ -55,7 +55,6 @@ import moment from 'moment';
import {getPluginScalarsScalars} from '../../service'; import {getPluginScalarsScalars} from '../../service';
const originLinesOpacity = 0.3; const originLinesOpacity = 0.3;
const defaultSmoothWeight = 0.6;
const lineWidth = 1.5; const lineWidth = 1.5;
const minQuantile = 0.05; const minQuantile = 0.05;
const maxQuantile = 0.95; const maxQuantile = 0.95;
...@@ -320,7 +319,7 @@ export default { ...@@ -320,7 +319,7 @@ export default {
transformDataset(seriesData) { transformDataset(seriesData) {
// smooth // smooth
this.transformData(seriesData, this.smoothing || defaultSmoothWeight); this.transformData(seriesData, this.smoothing);
}, },
/** /**
...@@ -543,11 +542,11 @@ export default { ...@@ -543,11 +542,11 @@ export default {
} }
let sortedPoints; let sortedPoints;
switch (sortingMethod) { switch (sortingMethod) {
case 'desc': case 'descending':
sortedPoints = sortBy(points, one => one.item[3]); sortedPoints = sortBy(points, one => one.item[3]);
sortedPoints.reverse(); sortedPoints.reverse();
break; break;
case 'asc': case 'ascending':
sortedPoints = sortBy(points, one => one.item[3]); sortedPoints = sortBy(points, one => one.item[3]);
break; break;
case 'nearest': case 'nearest':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册