summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenjinsong <[email protected]>2021-10-09 19:03:50 +0800
committerchenjinsong <[email protected]>2021-10-09 19:03:50 +0800
commit747a7ecd7cbee2f06f356bada06a1d8fb96fd665 (patch)
treeb3f74d56e6d9788257e98e7ff51871a3580b41c3
parent392cb144eee6638f9bc237e7d7a1d3dc201daf01 (diff)
CN-196 perf: 调整地图底色
-rw-r--r--src/views/charts/Chart.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue
index 9e5af313..f40731c2 100644
--- a/src/views/charts/Chart.vue
+++ b/src/views/charts/Chart.vue
@@ -938,10 +938,9 @@ export default {
polygonSeries.heatRules.push({
property: 'fill',
target: polygonSeries.mapPolygons.template,
- min: am4Core.color('#EABA2B'),
- max: allZero ? am4Core.color('#EABA2B') : am4Core.color('#D95D41')
+ min: this.myChart.colors.getIndex(1).brighten(1),
+ max: allZero ? this.myChart.colors.getIndex(1).brighten(1) : this.myChart.colors.getIndex(1).brighten(-0.3)
})
-
const heatLegend = this.myChart.createChild(HeatLegend)
heatLegend.markerContainer.height = 6
heatLegend.series = polygonSeries
@@ -969,6 +968,7 @@ export default {
polygonTemplate.tooltipText = '{name}{title}'
polygonTemplate.nonScalingStroke = true
polygonTemplate.strokeWidth = 0.5
+ polygonTemplate.fill = am4Core.color('rgba(176,196,222,.5)')
}
}
} else if (response.code !== 200) {