
getStatisFactionChart(val) {
debugger
const xlChart = this.$echarts.init(document.getElementById('statisChart'))
xlChart.setOption({
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
crossStyle: {
color: '#999'
}
}
},
// toolbox: {
// feature: {
// dataView: {
// show: false,
// readOnly: false
// },
// magicType: {
// show: false,
// type: ['line', 'bar']
// },
// restore: {
// show: false
// },
// saveAsImage: {
// show: false
// }
// }
// },
legend: {
data: val.legend,
textStyle: {
color: '#FFFFFF'
}
},
xAxis: [{
type: 'category',
data: val.xAxis,
axisPointer: {
type: 'shadow'
},
axisLabel: {
textStyle: {
color: '#FFFFFF'
}
}
}],
yAxis: [{
type: 'value',
name: '满意度',
axisLabel: {
formatter: '{value} %',
textStyle: {
color: '#FFFFFF'
}
},
axisLine: {
show: true,
lineStyle: {
color: '#FFFFFF'
}
}
}
],
series: val.series
})
}
}