This commit is contained in:
landaiqing 2023-12-24 23:01:35 +08:00
parent b8a53d8d90
commit 29ba707cde

View File

@ -270,90 +270,78 @@ export default {
var myChart = this.$echarts.init(
document.getElementById('ManuEchart')
);
var MyOption = {
var option = {
tooltip: {
trigger: 'item',
axisPointer: {
type: 'shadow'
},
dataZoom: [{
type: 'slider', //
show: true, // dataZoom
start: 0, // 0
end: 30, // 100
handleSize: 8, //
handleStyle: {
color: '#DCE2E8' //
},
xAxisIndex: [0], // x
filterMode: 'filter' // filter
}]
,
backgroundColor: '#fff', //
borderColor: '#000', //
borderWidth: 1, //
textStyle: { //
color: '#000',
fontSize: 12
}
trigger: 'axis'
},
xAxis: {
xAxis: [{
type: 'category',
data: xline,
axisLine: {
show: true,
lineStyle: {
color: '#76aaff',
width: 2,
type: "solid"
color: "#ffffff"
}
}
},
yAxis: {
}],
yAxis: [{
type: 'value',
splitNumber: 4,
splitLine: {
lineStyle: {
color: '#76aaff',
type: 'dashed',
color: '#DDD'
}
},
axisLine: {
show: true,
show: false,
lineStyle: {
color: '#76aaff',
width: 2,
type: "solid"
}
},
axisLabel: {//y
textStyle: {
color: '#76aaff',
margin: 15
color: "#ffffff"
},
// formatter: '{value} %'//y%
},
nameTextStyle: {
color: "#ffffff"
},
splitArea: {
show: false
}
},
series: [
{
data: yline,
type: 'line',
label: {//
show: true, //
}],
series: [{
name: '访问量',
type: 'line',
data: yline,
lineStyle: {
normal: {
width: 8,
color: {
type: 'linear',
colorStops: [{
offset: 0,
color: '#A9F387' // 0%
}, {
offset: 1,
color: '#48D8BF' // 100%
}],
globalCoord: false // false
},
shadowColor: 'rgba(72,216,191, 0.3)',
shadowBlur: 10,
shadowOffsetY: 20
}
},
{
data: yline,
type: 'bar'
itemStyle: {
normal: {
color: '#fff',
borderWidth: 10,
/*shadowColor: 'rgba(72,216,191, 0.3)',
shadowBlur: 100,*/
borderColor: "#A9F387"
}
},
],
dataZoom: {
yAxisIndex: [0],
type: 'inside',
start: 0,
end: 100,
zoomLock: true,
}
}
myChart.setOption(MyOption, true);
smooth: true
}]
};
myChart.setOption(option, true);
},
//
GetNav(id) {