Toggle navigation
单轴气泡
By
132*****250
2019-03-08 05:58:24
脚本
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
图表已生成
整理代码
刷新
代码
option = { title: { text: '三城一区人口密度对比图', top: '10%', left: '35%', textStyle: {fontSize: 22} }, singleAxis: { type: 'category', bottom: '50%', top: '50%', right: '10%', data: ['中关村科学城','亦庄经开区','未来科技城','怀柔科学城'], axisLabel: {fontSize: 16, fontWeight: 'bold'}, axisLine: {show: false}, axisTick: {show: false} }, legend: { show: true, left: '35%', top: '15%', textStyle: {fontSize: 14}, itemWidth: 20, itemHeight: 20 }, series: [{ type: 'scatter', name: '常住人口密度', coordinateSystem: 'singleAxis', data: [43460, 12089, 6336, 1884], symbolSize: function(value) { return Math.sqrt(value)*1.2 }, symbolOffset: [0, '-50%'], itemStyle: {opacity: 0.7, color: '#61a0a8'}, label: { show: true, position: 'top', formatter: '{c}人/平方公里' } },{ type: 'scatter', name: '工作人口密度', coordinateSystem: 'singleAxis', data: [18471, 6638, 1610, 512], symbolSize: function(value) { return Math.sqrt(value)*1.3 }, symbolOffset: [0, '-50%'], itemStyle: {opacity: 0.8, color: '#d48265'}, label: { show: true, position: 'inside', formatter: '{c}人/平方公里' } }] };