|
|
@@ -328,7 +328,6 @@ let app = new Vue({
|
|
|
// return tip
|
|
|
// },
|
|
|
formatter: data => {
|
|
|
- console.log(data,'????????')
|
|
|
return `${data[0].value[0]}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color}"></span> ${data[0].seriesName}:${data[0].data[1]}亿<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color}"></span> ${data[1].seriesName}:${data[1].data[1]}亿<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[2].color}"></span> ${data[2].seriesName}:${data[2].data[1]}亿`
|
|
|
},
|
|
|
axisPointer: {
|
|
|
@@ -405,18 +404,27 @@ let app = new Vue({
|
|
|
type: 'scatter',
|
|
|
itemStyle: itemStyle,
|
|
|
data: echart2[0],
|
|
|
+ symbolSize: function (data) {
|
|
|
+ return Math.sqrt(data[1]) * 4;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
name: '容差',
|
|
|
type: 'scatter',
|
|
|
itemStyle: itemStyle,
|
|
|
- data: echart2[1]
|
|
|
+ data: echart2[1],
|
|
|
+ symbolSize: function (data) {
|
|
|
+ return Math.sqrt(data[1])* 4;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
name: '负偏差',
|
|
|
type: 'scatter',
|
|
|
itemStyle: itemStyle,
|
|
|
- data: echart2[2]
|
|
|
+ data: echart2[2],
|
|
|
+ symbolSize: function (data) {
|
|
|
+ return Math.sqrt(data[1])* 4;
|
|
|
+ },
|
|
|
}
|
|
|
]
|
|
|
}
|