Commit 90c8d485 authored by 徐来柯's avatar 徐来柯

update right items

parent 6303dc4e
...@@ -473,6 +473,7 @@ function getRight2() { ...@@ -473,6 +473,7 @@ function getRight2() {
axisLabel: { axisLabel: {
show: true, show: true,
inside: false, inside: false,
fontSize: 14,
color: '#F5BD5F', color: '#F5BD5F',
}, },
splitArea: { splitArea: {
...@@ -483,17 +484,21 @@ function getRight2() { ...@@ -483,17 +484,21 @@ function getRight2() {
}, },
data: valueData data: valueData
} }
], ],
grid: { grid: {
top: 0, top: 10,
left: 80, right: 10,
bottom: 10, bottom: 0,
right: 60, left: 10,
containLabel: true
}, },
series: [ series: [
{ {
barWidth: 4, barWidth: 4,
showBackground: true, showBackground: true,
backgroundStyle:{
color: '#0C2648'
},
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
...@@ -519,7 +524,7 @@ function getRight2() { ...@@ -519,7 +524,7 @@ function getRight2() {
success :function(res) { success :function(res) {
let data = [] let data = []
xData.forEach((item, i)=>{ xData.forEach((item, i)=>{
data.push(res.data[i].Value) data.push(res.data[i].Value ? res.data[i].Value : 0)
}) })
rightChart2.setOption({ rightChart2.setOption({
yAxis: [ yAxis: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment