Toggle navigation
国家标准_深圳各行政区所参与制定国家标准数量情况_地图
By
D***K
2020-12-06 05:25:44
脚本
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 uploadedDataURL = "/asset/get/s/data-1589284831081-RBq4RuXFw.json"; function shenzhenMapChartLoad() { var data = [{ name: '南山区', value: [113.96, 22.55, 280] }, { name: '福田区', value: [114.05454, 22.55, 270] }, { name: '宝安区', value: [113.88, 22.65, 260] }, { name: '龙岗区', value: [114.25, 22.72, 250] }, { name: '罗湖区', value: [114.13, 22.58, 200] }, { name: '龙华区', value: [114.03, 22.68, 190] }, { name: '光明区', value: [113.93588, 22.75, 120] }, { name: '盐田区', value: [114.26, 22.59, 80] }, { name: '坪山区', value: [114.34632, 22.69, 360] }, { name: '大鹏新区', value: [114.48, 22.59, 120] } ]; let index = -1; // var timer = setInterval(function() { // // 隐藏提示框 // myChart.dispatchAction({ // type: 'hideTip', // seriesIndex: 0, // dataIndex: index // }); // // 显示提示框 // myChart.dispatchAction({ // type: 'showTip', // seriesIndex: 0, // dataIndex: index + 1 // }); // // 取消高亮指定的数据图形 // myChart.dispatchAction({ // type: 'downplay', // seriesIndex: 0, // dataIndex: index // }); // // 高亮指定的数据图形 // myChart.dispatchAction({ // type: 'highlight', // seriesIndex: 0, // dataIndex: index + 1 // }); // index++; // if (index > 13) { // index = -1; // } // }, 2000); $.get(uploadedDataURL, function(geoJson) { echarts.registerMap('shenzhen', geoJson); myChart.setOption( option = { backgroundColor: '#012248', title: [{ show: true, text: '深圳市参与企业标准制修订的情况分析--各区企业数量分布', textStyle: { color: '#ccc', fontSize: 25 }, x: 'center', top: 40 }], grid: { right: 10, top: 10, bottom: 0, }, tooltip: { show: true, formatter: function(params) { return params.name + ':' + params.data['value'][2] + '' }, }, dataRange: { min: 0, max: 1000, right: 40, top: 100, seriesIndex: 1, type: 'piecewise', bottom: 500, textStyle: { color: '#FFFF' }, splitList: [{ gt: 300, color: '#F5222D', label: '大于300' }, //大于5万人 { gte: 200, lte: 300, color: '#FA541C ', label: '200-300' }, //3-5万人 { gte: 100, lte: 200, color: '#FA8C16', label: '100-200' }, //1-3万人 { lte: 100, color: '#fbe1d6', label: '小于100' } ] }, geo: { map: 'shenzhen', zoom: 1.1, roam: false, itemStyle: { normal: { areaColor: '#013C62', shadowColor: '#182f68', shadowOffsetX: 0, shadowOffsetY: 25 }, emphasis: { areaColor: '#2AB8FF', borderWidth: 0, color: 'green', label: { show: false } } } }, series: [{ type: 'map', label: { normal: { show: true, textStyle: { color: '#fff', fontSize: 16 } }, emphasis: { textStyle: { color: '#fff' } } }, itemStyle: { normal: { borderColor: '#2ab8ff', borderWidth: 1.5, areaColor: '#12235c' }, emphasis: { areaColor: '#2AB8FF', borderWidth: 0, color: 'green' } }, zoom: 1.1, roam: false, map: 'shenzhen', //使用 data: data, nameMap: { 'nanshan': '南山区', 'yantian': '盐田区', 'baoan': '宝安区', 'futian': '福田区', 'luohu': '罗湖区', 'dapeng': '大鹏新区', 'pingshan': '坪山区', 'guangming': '光明区', 'longhua': '龙华区', 'longgang': '龙岗区' }, }, { type: 'effectScatter', coordinateSystem: 'geo', showEffectOn: 'render', rippleEffect: { period: 15, scale: 4, brushType: 'fill' }, hoverAnimation: true, itemStyle: { normal: { color: '#ffff', shadowBlur: 10, shadowColor: '#333' } }, data: data } ] }); }) } shenzhenMapChartLoad();