Fri Jul 21 02:07:00 CST 2023 inscode

上级 ad01ed2c
......@@ -9,6 +9,12 @@
<meta name="referrer" content="no-referrer" />
<title>csdn 用户快捷查分改文</title>
</head>
<style>
body{
background: #262626;
color:#fff;
}
</style>
<body>
<div id="app"></div>
......
......@@ -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<number){
state.maxCityNum=number
}
continue
}
setTimeout(() => {
renderEchartBar()
}, 500)
renderEchartBar()
}
// storage
......@@ -270,6 +271,16 @@ function renderEchartBar() {
人员信息:<br>${strInfo}`
}
},
visualMap: { // 设置视觉映射
min: 0,
max: state.maxCityNum,
text: ['最高', '最低'],
realtime: true,
calculable: true,
inRange: {
color: ['lightskyblue', 'yellow', 'orangered']
}
},
series: [
// 坐标点的热力数据
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册