|
@@ -574,7 +574,6 @@ let app = new Vue({
|
|
}
|
|
}
|
|
let that = this
|
|
let that = this
|
|
myChart.on('click', function (params) {
|
|
myChart.on('click', function (params) {
|
|
- console.log(params)
|
|
|
|
if (params.name == '太原市') {
|
|
if (params.name == '太原市') {
|
|
that.showTip = true
|
|
that.showTip = true
|
|
}
|
|
}
|
|
@@ -1597,7 +1596,6 @@ let app = new Vue({
|
|
}
|
|
}
|
|
let that = this
|
|
let that = this
|
|
myChart.on('click', function (param) {
|
|
myChart.on('click', function (param) {
|
|
- console.log(param)
|
|
|
|
if (param.name == '战略新兴产业') {
|
|
if (param.name == '战略新兴产业') {
|
|
that.tipTitle2 = param.name
|
|
that.tipTitle2 = param.name
|
|
that.showTip2 = true
|
|
that.showTip2 = true
|
|
@@ -1614,8 +1612,7 @@ let app = new Vue({
|
|
let myChart = echarts.init(this.$refs['echartL2'])
|
|
let myChart = echarts.init(this.$refs['echartL2'])
|
|
let option = {
|
|
let option = {
|
|
tooltip: {
|
|
tooltip: {
|
|
- formatter: data => {
|
|
|
|
- console.log(data)
|
|
|
|
|
|
+ formatter: data => {
|
|
return `${data[0].name}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿 <br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value}亿`
|
|
return `${data[0].name}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿 <br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value}亿`
|
|
},
|
|
},
|
|
trigger: 'axis',
|
|
trigger: 'axis',
|