1
This commit is contained in:
@@ -428,8 +428,8 @@
|
||||
|
||||
let opt = {
|
||||
grid: {
|
||||
top: fontSize(60),
|
||||
bottom: fontSize(30)
|
||||
top: fontSize(40),
|
||||
bottom: fontSize(20)
|
||||
},
|
||||
legend: {
|
||||
top: fontSize(10),
|
||||
@@ -440,7 +440,6 @@
|
||||
type: 'category',
|
||||
data: label,
|
||||
axisLabel: {
|
||||
|
||||
color: '#3FB0FF'
|
||||
},
|
||||
axisLine: {
|
||||
@@ -449,23 +448,47 @@
|
||||
color: '#84D7FE'
|
||||
}
|
||||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
}
|
||||
//axisTick: {
|
||||
// show: false
|
||||
//}
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
color: '#3FB0FF'
|
||||
yAxis: [
|
||||
{
|
||||
type: 'value',
|
||||
name: '数量',
|
||||
position: 'left',
|
||||
splitNumber: 5,
|
||||
alignTicks: true,
|
||||
axisLabel: {
|
||||
color: '#3FB0FF'
|
||||
},
|
||||
splitLine: {
|
||||
lineStyle: {
|
||||
color: '#1B538B', // 设置Y轴线颜色为白色
|
||||
type: 'dashed'
|
||||
}
|
||||
},
|
||||
},
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: '#1B538B',
|
||||
type: 'dashed'
|
||||
{
|
||||
type: 'value',
|
||||
name: '百分比',
|
||||
position: 'right',
|
||||
splitNumber: 5,
|
||||
interval: 25,
|
||||
max: 100,
|
||||
min: 0,
|
||||
alignTicks: true,
|
||||
axisLabel: {
|
||||
color: '#3FB0FF'
|
||||
},
|
||||
splitLine: {
|
||||
lineStyle: {
|
||||
color: '#1B538B', // 设置Y轴线颜色为白色
|
||||
type: 'dashed'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
series: [
|
||||
{
|
||||
name: '<%=total%>',
|
||||
@@ -475,6 +498,7 @@
|
||||
itemStyle: {
|
||||
color: '#20AFFF'
|
||||
},
|
||||
yAxisIndex: 0,
|
||||
label: {
|
||||
// 柱图头部显示值
|
||||
show: true,
|
||||
@@ -483,7 +507,7 @@
|
||||
fontSize: fontSize(10),
|
||||
formatter: (params) => {
|
||||
let str = params.value;
|
||||
console.log(params.name)
|
||||
//console.log(params.name)
|
||||
if (params.name == '<%=RectificationRate%>') {
|
||||
str = str + '%'
|
||||
}
|
||||
@@ -499,6 +523,7 @@
|
||||
itemStyle: {
|
||||
color: '#12CDA2'
|
||||
},
|
||||
yAxisIndex: 0,
|
||||
label: {
|
||||
// 柱图头部显示值
|
||||
show: true,
|
||||
@@ -522,6 +547,7 @@
|
||||
itemStyle: {
|
||||
color: '#FFA602'
|
||||
},
|
||||
yAxisIndex: 1,
|
||||
showSymbol: false,
|
||||
areaStyle: {
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||
|
||||
Reference in New Issue
Block a user