提交 f58b45e6 编写于 作者: J Jeff Wang 提交者: daminglu

Fix the issue where the tagsList in Histogram will return undefined items. (#250)

上级 2dd3de5d
......@@ -62,7 +62,7 @@ export default {
run,
tag: tags[run][tag]
};
});
}).filter(item => item.tag !== undefined);
return {
tagList,
tag,
......
......@@ -129,6 +129,7 @@ export default {
this.data.set('downloadType', runsItems[0].value);
},
// Create a Scalar Chart, initialize it with default settings, then load datas
initChart(tagInfo) {
this.createChart();
this.setChartsOptions(tagInfo);
......@@ -141,6 +142,7 @@ export default {
},
setChartsOptions({tagList, tag}) {
// Create two lines, one line is original, the other line is for smoothing
let seriesOption = tagList.map(item => [
{
name: item.run,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册