提交 3a147bc8 编写于 作者: P pissang

test: fix tests with error

上级 d06e7382
......@@ -45,7 +45,7 @@ under the License.
var gexf = dataTool.gexf;
var chart = echarts.init(document.getElementById('main');
var chart = echarts.init(document.getElementById('main'));
$.get('./data/les-miserables.gexf', function (xml) {
var graph = gexf.parse(xml);
......
......@@ -115,20 +115,7 @@ under the License.
padding: 10,
backgroundColor: '#222',
borderColor: '#777',
borderWidth: 1,
formatter: function (obj) {
var value = obj[0].value;
return '<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">'
+ obj[0].seriesName + ' ' + value[0] + '日期:'
+ value[7]
+ '</div>'
+ schema[1].text + '' + value[1] + '<br>'
+ schema[2].text + '' + value[2] + '<br>'
+ schema[3].text + '' + value[3] + '<br>'
+ schema[4].text + '' + value[4] + '<br>'
+ schema[5].text + '' + value[5] + '<br>'
+ schema[6].text + '' + value[6] + '<br>';
}
borderWidth: 1
},
visualMap: {
show: true,
......
......@@ -157,17 +157,7 @@ under the License.
padding: 10,
backgroundColor: '#222',
borderColor: '#777',
borderWidth: 1,
formatter: function (obj) {
var value = obj[0].value;
return '<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">'
+ schema[1].name + '' + value[1] + '<br>'
+ schema[2].name + '' + value[2] + '<br>'
+ schema[3].name + '' + value[3] + '<br>'
+ schema[4].name + '' + value[4] + '<br>'
+ schema[5].name + '' + value[5] + '<br>'
+ schema[6].name + '' + value[6] + '<br>';
}
borderWidth: 1
},
title: [
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册