methods: {
chartInit() {
var chartDom = document.getElementById("chartBar");
this.chart = echarts.init(chartDom);
let option = {
color: ["#339a94", "#70c1b3", "#ff9f41", "#ffa54d"],
tooltip: {
trigger: "axis",
showContent: true,
formatter: function (params) {
for (let i = 0; i < params.length; i++) {
var relVal = params[i].name;
}
for (let i = 0; i < params.length; i++) {
let unit = "个";
if (params[i].seriesName == "同比变化") {
unit = "%";
}
relVal +=
"<br/>" +