|
|
@@ -3196,7 +3196,7 @@ let app = new Vue({
|
|
|
tooltip: {
|
|
|
trigger: "item",
|
|
|
formatter: function (e) {
|
|
|
- return `<span style="display:inline-block;margin-right:10px;border-radius:10px;width:20px;height:20px;background-color:${e.borderColor};"></span>${e.name} ${e.percent}%<br>${e.value}亿 ${left1[that.industryLayout][e.seriesIndex].num}个`;
|
|
|
+ return `<span style="display:inline-block;margin-right:10px;border-radius:10px;width:20px;height:20px;background-color:${e.borderColor};"></span>${e.name} ${e.percent}%<br>${e.value}亿 ${left1[that.industryLayout][e.dataIndex].num}个`;
|
|
|
},
|
|
|
backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
|
|
|
borderColor: '#135C8A00',
|
|
|
@@ -4005,11 +4005,11 @@ let app = new Vue({
|
|
|
colorStops: [
|
|
|
{
|
|
|
offset: 0,
|
|
|
- color: "#468ff8", // 0% 处的颜色
|
|
|
+ color: "#468ff800", // 0% 处的颜色
|
|
|
},
|
|
|
{
|
|
|
offset: 1,
|
|
|
- color: "#0a2c6d", // 100% 处的颜色
|
|
|
+ color: "#0a2c6d00", // 100% 处的颜色
|
|
|
},
|
|
|
],
|
|
|
globalCoord: false, // 缺省为 false
|
|
|
@@ -4180,6 +4180,18 @@ let app = new Vue({
|
|
|
},
|
|
|
data: categoryData,
|
|
|
},
|
|
|
+ // 配置图片相关
|
|
|
+ graphic: {
|
|
|
+ elements: [{
|
|
|
+ type: 'image',//需要填充图片,配置image,如果不需要图片可以配置其他的, text, circle, sector, ring, polygon, polyline, rect, line, bezierCurve, arc, group,
|
|
|
+ style: {
|
|
|
+ image: './img/3D/shanxiMap.png', //这里添加图片地址
|
|
|
+ width: 835,
|
|
|
+ },
|
|
|
+ left: '9.5%',
|
|
|
+ top: '20' //配置图片居中
|
|
|
+ }]
|
|
|
+ },
|
|
|
series: [
|
|
|
{
|
|
|
type: "effectScatter",
|
|
|
@@ -5243,7 +5255,7 @@ let app = new Vue({
|
|
|
} else {
|
|
|
that.stageTitle4 = params.name
|
|
|
that.stageTitle3 = params.percent + '%'
|
|
|
- return `<span style="display:inline-block;border-radius:50%;margin-right:10px;width:20px;height:20px;background-color:${params.color}"></span>${params.name}:<br/>金额:<b>${totalData[params.seriesIndex].num}</b>亿<br/>数量:<b>${params.value}</b>个`
|
|
|
+ return `<span style="display:inline-block;border-radius:50%;margin-right:10px;width:20px;height:20px;background-color:${params.color}"></span>${params.name}:<br/>金额:${params.value}亿<br/>数量:${(totalData.find(item=>item.name == params.name)).num}个`
|
|
|
}
|
|
|
},
|
|
|
confine: true,
|