|
|
|
@ -488,6 +488,11 @@ export default { |
|
|
|
value: 24546, |
|
|
|
}, |
|
|
|
]; |
|
|
|
let valueColor = [ |
|
|
|
{ color1: '#15224C', color2: '#FF0042', unit: ' 人 '}, |
|
|
|
{ color1: '#15224C', color2: '#FED700', unit: ' 册 '}, |
|
|
|
{ color1: '#15224C', color2: '#00FEC5', unit: ' 册 '} |
|
|
|
] |
|
|
|
var libraryIcons = { |
|
|
|
'Lend': '/img/wh_right1.png', |
|
|
|
'Still': '/img/wh_right2.png', |
|
|
|
@ -648,7 +653,7 @@ export default { |
|
|
|
lineHeight: 30, |
|
|
|
fontSize: 16, |
|
|
|
formatter: function (value, index) { |
|
|
|
return data[index].value + ' 册 ' |
|
|
|
return data[index].value + valueColor[index].unit |
|
|
|
}, |
|
|
|
} |
|
|
|
}], |
|
|
|
@ -676,27 +681,23 @@ export default { |
|
|
|
// align: left, |
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
color: new echarts.graphic.LinearGradient( |
|
|
|
0, |
|
|
|
0, |
|
|
|
1, |
|
|
|
0, |
|
|
|
[{ |
|
|
|
offset: 0, |
|
|
|
color: '#A71A2B' |
|
|
|
}, |
|
|
|
{ |
|
|
|
offset: 0.7, |
|
|
|
color: '#A71A2B' |
|
|
|
}, |
|
|
|
{ |
|
|
|
offset: 1, |
|
|
|
color: '#5EDEE5' |
|
|
|
} |
|
|
|
], |
|
|
|
|
|
|
|
false |
|
|
|
), |
|
|
|
color: (params) => { |
|
|
|
var index = params.dataIndex; |
|
|
|
if (params.dataIndex >= valueColor.length) { |
|
|
|
index = params.dataIndex - valueColor.length; |
|
|
|
} |
|
|
|
return new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ |
|
|
|
offset: 0, |
|
|
|
color: valueColor[index].color1 |
|
|
|
}, |
|
|
|
{ |
|
|
|
offset: 0.8, |
|
|
|
color: valueColor[index].color2 |
|
|
|
},{ |
|
|
|
offset: 1, |
|
|
|
color: valueColor[index].color2 |
|
|
|
}]); |
|
|
|
}, |
|
|
|
barBorderRadius: 10 |
|
|
|
}, |
|
|
|
// color: '#A71A2B', |
|
|
|
|