|
|
|
@ -570,6 +570,7 @@ |
|
|
|
var tabStr = fillTable(tmpList); |
|
|
|
document.getElementById("echartEnforcerTable").innerHTML = tabStr; |
|
|
|
|
|
|
|
|
|
|
|
enforcerAnalysis(enforcers, nums); |
|
|
|
}, |
|
|
|
error: function (er) { //失败,回调函数 |
|
|
|
@ -582,7 +583,6 @@ |
|
|
|
var myChart = echarts.init(document.getElementById('echartEnforcer')); |
|
|
|
var app = {}; |
|
|
|
option = null; |
|
|
|
|
|
|
|
option = { |
|
|
|
backgroundColor: '', |
|
|
|
tooltip: { |
|
|
|
@ -648,7 +648,7 @@ |
|
|
|
position: 'top', |
|
|
|
formatter: '{c}', |
|
|
|
textStyle: { |
|
|
|
color: '#666', //color of value |
|
|
|
color: '#3786ef', //color of value |
|
|
|
fontSize: 14 |
|
|
|
} |
|
|
|
} |
|
|
|
@ -656,13 +656,13 @@ |
|
|
|
itemStyle: { |
|
|
|
//通常情况下: |
|
|
|
normal: { |
|
|
|
barBorderRadius: 20, |
|
|
|
barBorderRadius: 10, |
|
|
|
//每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组 |
|
|
|
color: function (params) { |
|
|
|
var colorList = [ |
|
|
|
//['#f43e30', '#fa8576'], |
|
|
|
//['#0db62a', '#38dc6f'], |
|
|
|
//['#ff730a', '#ffb233'], |
|
|
|
['#f43e30', '#fa8576'], |
|
|
|
['#0db62a', '#38dc6f'], |
|
|
|
['#ff730a', '#ffb233'], |
|
|
|
['#3786ef', '#81c0f8'], |
|
|
|
['#3786ef', '#81c0f8'], |
|
|
|
['#3786ef', '#81c0f8'], |
|
|
|
@ -670,16 +670,21 @@ |
|
|
|
]; |
|
|
|
var index = params.dataIndex; |
|
|
|
if (params.dataIndex >= colorList.length) { |
|
|
|
index = params.dataIndex - colorList.length; |
|
|
|
index = 0; |
|
|
|
index = params.dataIndex - (colorList.length - 1); |
|
|
|
} |
|
|
|
return new echarts.graphic.LinearGradient(0, 0, 0, 1, |
|
|
|
// var color1 = colorList[index][0]; |
|
|
|
// var color2 = colorList[index][1]; |
|
|
|
// console.log(color1) |
|
|
|
// console.log(color2) |
|
|
|
return new echarts.graphic.LinearGradient(0, 0 ,0, 1, |
|
|
|
[{ |
|
|
|
offset: 0, |
|
|
|
color: colorList[index][0] |
|
|
|
color: '#3786ef' |
|
|
|
}, |
|
|
|
{ |
|
|
|
offset: 1, |
|
|
|
color: colorList[index][1] |
|
|
|
color: '#81c0f8' |
|
|
|
} |
|
|
|
]); |
|
|
|
}, |
|
|
|
@ -970,7 +975,6 @@ |
|
|
|
function queryData() { |
|
|
|
var div = document.getElementById('seltime'); |
|
|
|
var selects = div.getElementsByTagName('select'); |
|
|
|
debugger |
|
|
|
var obj = {}; |
|
|
|
for (var i = 0; i < selects.length; i++) { |
|
|
|
var select = selects[i]; |
|
|
|
|