lineStyle: {
type: ‘dashed’,
color: ‘#0092D5’,
opacity: 0.3
}
},
axisLine: {
show: false,
},
axisLabel: {
color: ‘rgba(255, 255, 255, 0.8)’
},
},
grid: {
top: ‘35%’,
bottom: ‘17%’,
left: ‘7%’,
right: ‘2%’
},
series: [{
name: “主煤流系统手动启动时长”,
barWidth: 15,
type: ‘bar’,
data: [1,2,3,4,5,6],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideLeft’, //在上方显示
offset: [-8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0,
color: “#0069F5” // 0% 处的颜色
}, {
offset: 1,
color: “#35C3FF” // 100% 处的颜色
}], false)
}
},
}, {
name: “主煤流系统智能启动时长”,
barWidth: 15,
type: ‘bar’,
data: [2,3,4,5,6,7],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideRight’, //在上方显示
offset: [8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0,
color: “#03AC32” // 0% 处的颜色
}, {
offset: 1,
color: “#69EF00” // 100% 处的颜色
}], false)
}
},
}]
};
option = {
color: [‘#1890FF’, ‘#FF7D00’],
tooltip: {},
legend: {
show: true,
top: 15,
right: 0,
align: ‘left’,
x: ‘center’,
y: ‘top’,
icon: ‘rect’,
itemHeight: 5,
itemWidth: 15,
data: [“智能配煤”,“非智能配煤”],
textStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
fontSize: 12
},
},
xAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: ‘#0092D5’
}
},
axisLabel: {
color: ‘rgba(255, 255, 255, 0.8)’
},
data: [‘2020-01’,‘2020-02’,‘2020-03’,‘2020-04’,‘2020-05’,‘2020-06’]
},
yAxis: {
name: “(万元)”,
nameTextStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
align: ‘right’
},
splitLine: {
lineStyle: {
type: ‘dashed’,
color: ‘#0092D5’,
opacity: 0.3
}
},
axisLine: {
show: false,
},
axisLabel: {
color: ‘rgba(255, 255, 255, 0.8)’
},
},
grid: {
top: ‘25%’,
bottom: ‘10%’,
left: ‘10%’,
right: ‘2%’
},
series: [{
name: “智能配煤”,
barWidth: 15,
type: ‘line’,
smooth: true,
data: [1,2,3,4,5,6],
}, {
name: “非智能配煤”,
barWidth: 15,
type: ‘line’,
smooth: true,
data: [3,4,5,6,7,8],
}]
};
option = {
title: {
text: ‘近一周全矿井产量’,
textAlign: ‘left’,
x: ‘center’,
y: ‘top’,
textStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
fontSize: 14
}
},
color: [‘#0d81f7’, ‘#0fb42c’, ‘#e97507’],
tooltip: {},
legend: {
show: true,
top: 3,
right: 0,
data: [“综采1”,“综采2”, “总计”],
textStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
fontSize: 12
},
itemWidth: 12,
itemHeight: 12
},
xAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: ‘#0092D5’
}
},
axisLabel: {
color: ‘rgba(255, 255, 255, 0.8)’
},
data: [‘2020-01’,‘2020-02’,‘2020-03’,‘2020-04’,‘2020-05’,‘2020-06’]
},
yAxis: {
name: “(吨)”,
nameTextStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
align: ‘right’
},
splitLine: {
lineStyle: {
type: ‘dashed’,
color: ‘#0092D5’,
opacity: 0.3
}
},
axisLine: {
show: false,
},
axisLabel: {
color: ‘rgba(255, 255, 255, 0.8)’
},
},
grid: {
top: ‘20%’,
bottom: ‘10%’,
left: ‘10%’,
right: ‘2%’
},
series: [{
name: “综采1”,
barWidth: 15,
type: ‘bar’,
data: [1,2,3,4,5,6],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideLeft’, //在上方显示
offset: [-8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0,
color: “#0069F5” // 0% 处的颜色
}, {
offset: 1,
color: “#35C3FF” // 100% 处的颜色
}], false)
}
},
}, {
name: “综采2”,
barWidth: 15,
type: ‘bar’,
data: [3,4,5,6,7,8],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideRight’, //在上方显示
offset: [8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0,
color: “#03AC32” // 0% 处的颜色
}, {
offset: 1,
color: “#69EF00” // 100% 处的颜色
}], false)
}
},
}, {
name: “总计”,
barWidth: 15,
type: ‘line’,
color: ‘#f67a03’,
data: [8,9,10,11,12,13],
}]
};
option = {
color: [‘#acff02’, ‘#fac800’, ‘#ff7d00’, ‘#0fb42c’],
tooltip: {
trigger: ‘axis’,
axisPointer: { // Use axis to trigger tooltip
type: ‘shadow’ // ‘shadow’ as default; can also be ‘line’ or ‘shadow’
}
},
legend: {
show: true,
top: 15,
right: 0,
x: ‘center’,
y: ‘top’,
data: [“生产队1”,“生产队2”,“生产队3”, “总计”],
textStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
fontSize: 12
},
itemWidth: 12,
itemHeight: 12
},
xAxis: {
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: ‘#0092D5’
}
},
axisLabel: {
color: ‘rgba(255, 255, 255, 0.8)’
},
data: [‘2020-01’,‘2020-02’,‘2020-03’,‘2020-04’,‘2020-05’,‘2020-06’]
},
yAxis: {
name: “(吨)”,
nameTextStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
align: ‘right’
},
splitLine: {
lineStyle: {
type: ‘dashed’,
color: ‘#0092D5’,
opacity: 0.3
}
},
axisLine: {
show: false,
},
axisLabel: {
color: ‘rgba(255, 255, 255, 0.8)’
},
},
grid: {
top: ‘25%’,
bottom: ‘10%’,
left: ‘12%’,
right: ‘2%’
},
series: [{
name: “生产队1”,
barWidth: 15,
type: ‘bar’,
stack: ‘total’,
emphasis: {
focus: ‘series’
},
data: [1,2,3,4,5,6],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideRight’, //在上方显示
offset: [-8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
}
},
},
{
name: “生产队2”,
barWidth: 15,
type: ‘bar’,
stack: ‘total’,
emphasis: {
focus: ‘series’
},
data:[2,3,4,5,6,7],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideRight’, //在上方显示
offset: [-8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10,
}
},
}
},
},
{
name: “生产队3”,
barWidth: 15,
type: ‘bar’,
stack: ‘total’,
emphasis: {
focus: ‘series’
},
data:[5,6,7,8,9,10],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideRight’, //在上方显示
offset: [-8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
}
},
}, {
name: ‘总计’,
barWidth: 15,
type: ‘bar’,
data: [21,22,23,34,25,25],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideLeft’, //在上方显示
offset: [8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0,
color: “#0069F5” // 0% 处的颜色
}, {
offset: 1,
color: “#35C3FF” // 100% 处的颜色
}], false)
}
},
}]
};
option = {
title: {
text: ‘各生产队工效’,
textAlign: ‘left’,
x: ‘center’,
y: ‘top’,
top: ‘7%’,
textStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
fontSize: 12
最后更多分享:前端字节跳动真题解析
tSize: 10
}
},
}
},
}, {
name: ‘总计’,
barWidth: 15,
type: ‘bar’,
data: [21,22,23,34,25,25],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: ‘insideLeft’, //在上方显示
offset: [8, 0],
textStyle: { //数值样式
color: ‘#fff’,
fontSize: 10
}
},
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0,
color: “#0069F5” // 0% 处的颜色
}, {
offset: 1,
color: “#35C3FF” // 100% 处的颜色
}], false)
}
},
}]
};
option = {
title: {
text: ‘各生产队工效’,
textAlign: ‘left’,
x: ‘center’,
y: ‘top’,
top: ‘7%’,
textStyle: {
color: ‘rgba(255, 255, 255, 0.8)’,
fontSize: 12
最后更多分享:前端字节跳动真题解析
- [外链图片转存中…(img-D8sRHzHV-1720103771560)]