Toggle navigation
成都市租房房价分布图
By
c***婕
2020-12-23 08:29:47
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
var cdmap = "/asset/get/s/data-1608370627842-5P7jirpm5.json"; myChart.showLoading(); $.getJSON(cdmap, function(geoJson) { myChart.hideLoading(); echarts.registerMap('chengdu', geoJson); myChart.setOption(option={ backgroundColor: '#fcf8e8', //backgroundColor: '#020933', //backgroundColor: '#231942', title:{ text:'成都市房价分布图', subtext:'数据爬取于链家网站', top: 20, left: 'center' }, tooltip:{ trigger:'item', formatter: '{b}
平均房价:{c} (元/m²)
', }, toolbox:{ show: true, orient: 'vertical', left: 'right', top: 'center', feature:{ dataView: {readOnly: false}, restore: {}, saveAsImage: {} } }, visualMap:{ min: 5000, max: 18000, text: ['High', 'Low'], realtime: false, calculable: true, inRange: { color: ['lightskyblue', 'yellow', 'orangered'] //color: ['#fffaa4','#54e346','#0e49b5'] } }, series:[ { name: '成都市租房房价', type: 'map', mapType: 'chengdu', label:{ show: true }, roam: true, itemStyle: { normal: { areaColor: 'transparent', //borderColor: '#3fdaff', borderColor: '#6155a6', borderWidth: 1, shadowColor: 'rgba(63, 218, 255, 0.5)', //shadowBlur: 15 }, emphasis: { areaColor: '#ffffff', } }, data:[ {name: '成华区', value: 13869.47}, {name: '崇州市', value: 6777.47}, {name: '大邑县', value: 5812.9}, {name:'都江堰市',value: 6949.67}, {name: '简阳市', value: 8529.93}, {name: '金牛区', value: 12955.08}, {name: '金堂县', value: 5048.37}, {name: '锦江区', value: 17597.01}, {name: '龙泉驿区', value: 10136.54}, {name: '彭州市', value: 5832.82}, {name: '郫都区', value: 9082.69}, {name: '蒲江县', value: 6181.06}, {name: '青白江区', value: 6232.65}, {name: '青羊区', value: 17548}, {name: '邛崃市', value: 6928.06}, {name: '双流区', value: 10967.17}, {name: '温江区', value: 8789.23}, {name: '武侯区', value: 14452.12}, {name: '新都区', value: 8383.07}, {name: '新津区', value: 8730.25}, ] }] }) });