Fri Jul 21 02:07:00 CST 2023 inscode

上级 ad01ed2c
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
<meta name="referrer" content="no-referrer" /> <meta name="referrer" content="no-referrer" />
<title>csdn 用户快捷查分改文</title> <title>csdn 用户快捷查分改文</title>
</head> </head>
<style>
body{
background: #262626;
color:#fff;
}
</style>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -53,6 +53,7 @@ const props = defineProps({ ...@@ -53,6 +53,7 @@ const props = defineProps({
const state = reactive({ const state = reactive({
title: 'vue3 ts antd 参赛选手所在城市', title: 'vue3 ts antd 参赛选手所在城市',
clickCity: '全国', clickCity: '全国',
maxCityNum:0,
totlaNum: '', totlaNum: '',
linesCoord: [], linesCoord: [],
focusCity: '广东省', focusCity: '广东省',
...@@ -179,13 +180,13 @@ function initMap() { ...@@ -179,13 +180,13 @@ function initMap() {
} }
state.airData.push(temp) state.airData.push(temp)
} }
console.log('state.airData',state.airData) if(state.maxCityNum<number){
state.maxCityNum=number
}
continue continue
} }
setTimeout(() => {
renderEchartBar() renderEchartBar()
}, 500)
} }
// storage // storage
...@@ -270,6 +271,16 @@ function renderEchartBar() { ...@@ -270,6 +271,16 @@ function renderEchartBar() {
人员信息:<br>${strInfo}` 人员信息:<br>${strInfo}`
} }
}, },
visualMap: { // 设置视觉映射
min: 0,
max: state.maxCityNum,
text: ['最高', '最低'],
realtime: true,
calculable: true,
inRange: {
color: ['lightskyblue', 'yellow', 'orangered']
}
},
series: [ series: [
// 坐标点的热力数据 // 坐标点的热力数据
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册