济菏高速业务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

182 lines
3.6 KiB

import * as echarts from "echarts";
let options = {
tooltip: {
1 year ago
trigger: 'axis',
backgroundColor: 'rgba(17,95,182,0.5)',
textStyle: {
1 year ago
color: "#fff"
},
formatter: function (params) {
1 year ago
return params[0].name + params[0].seriesName + ': ' + params[0].value
}
},
grid: {
1 year ago
left: '2%',
right: '2%',
top: '15%',
bottom: '12%'
},
xAxis: {
1 year ago
data: [],
show: true,
axisTick: {
1 year ago
show: false
},
axisLine: {
show: true,
lineStyle: {
1 year ago
type: 'solid',
color: '#2D4377',
opacity: 1
}
},
// lineStyle: {
// show: true,
// type: 'solid'
// },
axisLabel: {
interval: 0,
textStyle: {
1 year ago
color: 'rgba(255,255,255,0.8)',
fontSize: 14
},
1 year ago
margin: 12 // 刻度标签与轴线之间的距离。
}
},
1 year ago
yAxis: [{
min: 0,
max: 100,
type: 'value',
minInterval: 20,
maxInterval: 20,
name: "",
nameTextStyle: {
align: 'left',
color: 'rgba(255,255,255,0.8)',
padding: [0, 0, 0, -20],
fontSize: 14
},
splitLine: {
show: true,
lineStyle: {
type: 'dashed',
color: '#2D4377',
opacity: 0.5
}
},
1 year ago
axisTick: {
show: false
},
axisLine: {
show: true,
lineStyle: {
color: '#2D4377',
}
},
axisLabel: {
textStyle: {
color: 'rgba(255,255,255,0.8)',
fontSize: 14
}
},
data: [
'0', '3', '6', '9', '12', '15', '18'
],
}],
legend: {
1 year ago
top: '5%',
right: '5%',
icon: 'rect',
itemWidth: 25,
itemHeight: 10,
textStyle: {
1 year ago
color: '#fff',
fontSize: 14
},
lineStyle: {
show: false,
color: "#00E4BB",
},
1 year ago
data: [{
name: '高清网络球型摄像机',
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: '#00E4BB' // 0% 处的颜色
}, {
offset: 1,
color: '#003B4E' // 100% 处的颜色
}], false)
},
1 year ago
},
{
name: '增涨率',
itemStyle: {
color: "#755400"
}
}],
itemGap: 12 // 设置间距
},
series: [
1 year ago
// 下半截柱状图
{
1 year ago
name: '',
type: 'bar',
barWidth: 12,
1 year ago
barGap: '-100%',
itemStyle: { // lenged文本
opacity: 1,
barBorderRadius: [13, 13, 13, 13],
color: function (params) {
1 year ago
var a = params.name.slice(0, 2)
return new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: '#00E4BB' // 0% 处的颜色
}, {
offset: 1,
color: '#003B4E' // 100% 处的颜色
}], false)
}
},
1 year ago
data: []
},
{
1 year ago
name: '',
type: 'bar',
barWidth: 12,
1 year ago
barGap: '-100%',
z: 0,
itemStyle: {
1 year ago
color: '#0BA7DA',
opacity: .1,
},
1 year ago
data: []
}
]
}
// option && myChart3.setOption(option);
// if (option && typeof option === "object") {
// myChart3.setOption(option, true);
// refreshChart(myChart3,option);
// var index3 = 0; //播放所在下标
// var mTime = setInterval(function () {
// myChart3.dispatchAction({
// type: 'showTip',
// seriesIndex: 0,
// dataIndex: index3
// });
// index3++;
// if (index3 >= 6) {
// //console.log('data4', fxdata.length)
// index3 = 0;
// //console.log(fxdata)
// }
// }, 2600);
// }
1 year ago
export default options;