<!DOCTYPE html>
<html>
<head>
<title>echarts</title>
<meta name="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/echarts.js"></script>
</head>
<body>
<div id="box" style="width: 700px;height: 700px;margin: 0 auto;"></div>
</body>
<script type="text/javascript">
$(function() {
var chart = echarts.init(document.getElementById("box"));
$.getJSON('json/beijing.json', function(data) {
echarts.registerMap('beijing', data);
chart.setOption({
series : {
type : 'map',
map : 'beijing',
layoutCenter : [ '50%', '50%' ],
layoutSize : '100%',
label : {
normal : {
show : true,
textStyle : {
color : '#fff'
}
},
emphasis : {
show : true,
textStyle : {
color : '#fff'
}
}
},
itemStyle : {
normal : {
areaColor : 'rgba(24,65,91,0.3)',
borderColor : '#9DDCEB',
borderWidth : 3,
shadowColor : '#9DDCEB',
shadowBlur : 20
},
emphasis : {
areaColor : 'rgba(24,65,91,0.3)'
}
}
}
})
});
});
</script>
</html>
echarts 炫酷北京地图
4星 · 超过85%的资源 需积分: 49 25 浏览量
2018-08-10
13:39:38
上传
评论 7
收藏 510KB ZIP 举报
写不出代码的耳东陈
- 粉丝: 3
- 资源: 5
最新资源
- Python 版冒泡排序算法源代码
- tensorflow-gpu-2.7.2-cp38-cp38-manylinux2010-x86-64.whl
- tensorflow-2.7.3-cp39-cp39-manylinux2010-x86-64.whl
- tensorflow-2.7.2-cp39-cp39-manylinux2010-x86-64.whl
- Python版本快速排序源代码
- Python 语言版的快速排序算法实现
- 450815388207377安卓_base.apk
- 超微主板 X9DRE-TF+ bios 支持 nvme启动
- 基于Python通过下载气象数据和插值拟合离散数据曲线实现对寒潮过程的能量分析
- 智能车仿真软件.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈