echarts之line
let el = this.$refs.echartsEl
let myChart = el && echarts.init(el);
var option = {
grid:{
//设置位置
left:'8%',
top:'5%',
right:'5%',
bottom:'25%'
},
colors: [`rgba(${
rgbaColor},1)`], //设置颜色取值
tooltip: {
//鼠标悬停提示内容-配置样式
trigger: 'axis', // 触发类型:'axis' item
backgroundColor: 'rgba(2, 29, 39, 1)',
padding: 0,
formatter:function (params) {
//自定义
console.log(params,'11')
let str = '';
params.