diff --git a/index.html b/index.html index ca14252d887dc069eeb56fe35e4b815041d6ee98..8ac62d569341511d735e3c542109d1c31484acbb 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,12 @@ csdn 用户快捷查分改文 +
diff --git a/src/components/GameChart.vue b/src/components/GameChart.vue index 7bebfb4f20d3bab6026a84291199ce5294f077a8..ed555afcf1c12bf39e3414ce808c34f02c60fb25 100644 --- a/src/components/GameChart.vue +++ b/src/components/GameChart.vue @@ -53,6 +53,7 @@ const props = defineProps({ const state = reactive({ title: 'vue3 ts antd 参赛选手所在城市', clickCity: '全国', + maxCityNum:0, totlaNum: '', linesCoord: [], focusCity: '广东省', @@ -179,13 +180,13 @@ function initMap() { } state.airData.push(temp) } - console.log('state.airData',state.airData) + if(state.maxCityNum { - renderEchartBar() - }, 500) + renderEchartBar() } // storage @@ -270,6 +271,16 @@ function renderEchartBar() { 人员信息:
${strInfo}` } }, + visualMap: { // 设置视觉映射 + min: 0, + max: state.maxCityNum, + text: ['最高', '最低'], + realtime: true, + calculable: true, + inRange: { + color: ['lightskyblue', 'yellow', 'orangered'] + } + }, series: [ // 坐标点的热力数据 {