import echarts from ‘echarts’
import { correctLaunchTrend } from ‘@/api/test’
export default {
name: ‘CorrectLaunchTrend’,
data() {
return {
name: ‘正确投放率趋势’,
datestr: ‘month’,
weekStyle: {
color: ‘#ffffff’,
backgroundColor: ‘#072f6d’
},
monthStyle: {
color: ‘#FF6B00’,
backgroundColor: ‘#88BAE9’
},
yearStyle: {
color: ‘#ffffff’,
backgroundColor: ‘#072f6d’
},
option: {
title: {
text: ‘正确投放率趋势’,
x: ‘center’,
textStyle: {
color: ‘#ffffff’,
fontSize: 16
},
},
textStyle: {
color: ‘#ffffff’
},
tooltip: {
trigger: ‘axis’
},
legend: {
data: [‘总数’, ‘同比’, ‘环比’],
show: true,
top: ‘8%’,
textStyle: {
color: ‘#ffffff’
}
},
grid: {
left: ‘3%’,
right: ‘12%’,
bottom: ‘7%’,
containLabel: true
},
toolbox: {
feature: {
saveAsImage: {
show: false
}
}
},
xAxis: [{
type: ‘category’,
name: ‘月’,
position: ‘center’,
splitLine: { // 去除网格
show: false
},