Commit 2348a774 authored by 徐来柯's avatar 徐来柯

update

parent a2a0c404
...@@ -9,40 +9,59 @@ ...@@ -9,40 +9,59 @@
/* 右侧第二个 */ /* 右侧第二个 */
let rightChart2 = echarts.init(document.getElementById('right2')); let rightChart2 = echarts.init(document.getElementById('right2'));
let rightOption2= { let rightOption2= {
color: '#FC962C',
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {
type: 'shadow' type: 'none'
} }
}, },
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: { xAxis: {
show: false, show: false,
type: 'value', type: 'value',
boundaryGap: [0, 0.01] boundaryGap: [0, 0.01]
}, },
yAxis: { yAxis: [
type: 'category', {
splitLine: { type: 'category',
show: false inverse: true,
}, splitLine: {
axisLine: { show: false
show: false },
}, axisLine: {
axisTick: { show: false
show: false },
}, axisTick: {
axisLabel: { show: false
color: '#fff', },
axisLabel: {
color: '#fff',
},
data: ['类型1', '类型2', '类型3', '类型4', '类型5', '类型6']
}, },
data: ['类型1', '类型2', '类型3', '类型4', '类型5', '类型6'] {
}, type: 'category',
axisLine: {
show: false
},
axisTick: {
show: false
},
axisLabel: {
show: true,
inside: false,
textStyle: {
color: '#F5BD5F',
},
},
splitArea: {
show: false
},
splitLine: {
show: false
},
data: [18203, 23489, 29034, 104970, 131744, 630230]
}
],
grid: { grid: {
top: 0, top: 0,
left: 60, left: 60,
...@@ -51,14 +70,17 @@ let rightOption2= { ...@@ -51,14 +70,17 @@ let rightOption2= {
}, },
series: [ series: [
{ {
name: '2011', barWidth: 4,
barWidth: 6,
showBackground: true, showBackground: true,
type: 'bar', type: 'bar',
label: { itemStyle: {
show: true, color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
color: '#F5BD5F', offset: 0,
position: 'outside' color: '#F1912E'
}, {
offset: 1,
color: "#ECB85F"
}], false),
}, },
data: [18203, 23489, 29034, 104970, 131744, 630230] data: [18203, 23489, 29034, 104970, 131744, 630230]
} }
......
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