获取动态数据到echarts-地图

7 篇文章 0 订阅
2 篇文章 0 订阅

 ====================控制层==================== 

//地图
	@RequestMapping("/data3")  
	public ModelAndView todata3(Model model,HttpServletRequest request,HttpSession session) {  
		session.setAttribute("bega", request.getParameter("begtime"));
		session.setAttribute("enda", request.getParameter("endtime"));
		model.addAttribute("beg", request.getParameter("begtime"));
		model.addAttribute("end", request.getParameter("endtime"));
	    return new ModelAndView("forward:/WEB-INF/views/admin/data/data-data3.jsp");  
	} 
	
	@RequestMapping("/data31")
	@ResponseBody
	public List<HashMap<String, Object>> toData3(String end,String begtime,HttpSession session,Model model, HttpServletRequest request) throws ParseException {
		Map<String, Object> map = new HashMap<String, Object>();
		
		String end1=(String) session.getAttribute("enda"), begtime1=(String) session.getAttribute("bega");
		//System.out.println("time================"+begtime1+"==end====="+end1);
		map.put("begtime", begtime1);
		map.put("endtime", end1);
	
		Integer artbrnum=dataService.findAreaCounts1(map);
		List<Log_login> list=dataService.findAreaCounts(map);
		
		//System.out.println("1================:"+artbrnum);
        return JsonResult.getGzMapRndVal(artbrnum,list);
	}

=================工具类================= 

package com.utils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Map.Entry;

import com.xinhuajs.articlemg.model.Log_Browse;
import com.xinhuajs.articlemg.model.Log_Download;
import com.xinhuajs.articlemg.model.Log_Great;
import com.xinhuajs.articlemg.model.Log_comment;
import com.xinhuajs.articlemg.model.Log_login;

public class JsonResult implements Serializable{

	private static final long serialVersionUID = 7754981695162962186L;
    
	private Object data;

	public JsonResult() {
		super();
		// TODO Auto-generated constructor stub
	}

	public JsonResult(Object data) {
		super();
		this.data = data;
	}
	
	//==============================ECharts图表的折线图=====================
	public static List<String> splStr2List(Integer str, String spl) {
        String[] strs = null;
        List<String> strList = null;
        if (str != null) {
            strs = str.toString().split(spl);
            if (strs != null) {
                strList = new ArrayList<String>();
                for (String st : strs) {
                    strList.add(st != null ? st.trim() : "");
                }
            }
        }
        return strList;
    }
	public static List<String> splStr2List(String str, String spl) {
        String[] strs = null;
        List<String> strList = null;
        if (str != null) {
            strs = str.split(spl);
            if (strs != null) {
                strList = new ArrayList<String>();
                for (String st : strs) {
                    strList.add(st != null ? st.trim() : "");
                }
            }
        }
        return strList;
    }

//=============地图
	public static List<HashMap<String, Object>> getGzMapRndVal(Integer nj,List<Log_login> logins) {
		List<HashMap<String, Object>> list = new ArrayList<HashMap<String, Object>>();
        List<String> names = splStr2List("南京市", ",");
        for (String nam : names) {
            HashMap<String, Object> vals = new HashMap<String, Object>();
            //System.out.println("j===============:"+nj);
            vals.put("name", nam);
            vals.put("value", nj);
            list.add(vals);
        }
        for(Log_login lo:logins){
		    List<String> name = splStr2List(lo.getCityname(), ",");
		    List<String> num = splStr2List(lo.getNum(), ",");
		    for (String grp : name) {
		        for (String count : num) {
		        	HashMap<String, Object> vals = new HashMap<String, Object>();
		        	vals.put("name", grp);
		        	vals.put("value", count);
		        	list.add(vals);
		        	//System.out.println("all===============:"+grp+"===num:"+count);
		        }
			}
        }
        return list;
	}
	
	//=======================================

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "JsonResult [data=" + data + "]";
	}
	
	
}

 

====================html==================== 

<div class="body-content">
    <div id="map" style="height: 500px; width: 100%"></div>
    <script src="resources/static/js/echarts.js"></script>
</div>

====================js==================== 

<script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="js/pintuer.js"></script>
<script src="js/echarts.js"></script>
<script src="js/jiangsu.js"></script> 

<script src="http://echarts.baidu.com/build/dist/echarts.js"></script>
        <script type="text/javascript">
            var datas1 = 0;
            var datas2 = 0;
            var datas3 = 0;
            var datas4 = 0;
            var datas5 = 0;
            var datas6 = 0;
            var datas7 = 0;
            var datas8 = 0;
            var datas9 = 0;
            var datas10 = 0;
            var datas11 = 0;
            var datas12 = 0;
            var datas13 = 0;
            var path = window.document.location.href.substring(0,
                    window.document.location.href
                            .indexOf(window.document.location.pathname))
                    + window.document.location.pathname.substring(0,
                            window.document.location.pathname.substr(1)
                                    .indexOf('/') + 1);

            $(function() {
                toSubmit1();
                //$(".select").click(toSubmit);
            });

            function toSubmit1() {
                //var beg=$("#text1").val();
                //var end=$("#text2").val();
                $.ajax({
                    type : "POST",
                    url : path + "/data/data31",
                    dataType : 'json',
                    success : function(data) {
                        for (var i = 0, len = data.length; i < len; i++) {
                            if (datas1 < data[i].value
                                    && data[i].name === ("南京市")) {
                                datas1 = data[i].value;
                            }
                            if (datas2 < data[i].value
                                    && data[i].name === ("盐城市")) {
                                datas2 = data[i].value;
                            }
                            if (datas3 < data[i].value
                                    && data[i].name === ("徐州市")) {
                                datas3 = data[i].value;
                            }
                            if (datas4 < data[i].value
                                    && data[i].name === ("南通市")) {
                                datas4 = data[i].value;
                            }
                            if (datas5 < data[i].value
                                    && data[i].name === ("淮安市")) {
                                datas5 = data[i].value;
                            }
                            if (datas6 < data[i].value
                                    && data[i].name === ("苏州市")) {
                                datas6 = data[i].value;
                            }
                            if (datas7 < data[i].value
                                    && data[i].name === ("宿迁市")) {
                                datas7 = data[i].value;
                            }
                            if (datas8 < data[i].value
                                    && data[i].name === ("连云港市")) {
                                datas8 = data[i].value;
                            }
                            if (datas9 < data[i].value
                                    && data[i].name === ("扬州市")) {
                                datas9 = data[i].value;
                            }
                            if (datas10 < data[i].value
                                    && data[i].name === ("泰州市")) {
                                datas10 = data[i].value;
                            }
                            if (datas11 < data[i].value
                                    && data[i].name === ("无锡市")) {
                                datas11 = data[i].value;
                            }
                            if (datas12 < data[i].value
                                    && data[i].name === ("常州市")) {
                                datas12 = data[i].value;
                            }
                            if (datas13 < data[i].value
                                    && data[i].name === ("镇江市")) {
                                datas13 = data[i].value;
                            }
                        }

                        //console.log("d1=====Data:"+datas1+"===="+datas11);
                    }
                });
            }
            // myChart.hideLoading();  

            // 路径配置
            require.config({
                paths : {
                    echarts : 'http://echarts.baidu.com/build/dist'
                }
            });

            // 使用
            require(
                    [ 'echarts', 'echarts/chart/map' // 使用柱状图就加载bar模块,按需加载
                    ],
                    function(ec) {
                        // 基于准备好的dom,初始化echarts图表
                        var myChart = ec.init(document.getElementById('map'));
                        // console.log("d1=====Data:"+datas1+"===="+datas11);
                        var option = {
                            title : {
                                text : '平台用户活跃度',
                                x : 'right',
                                y : '20',
                                padding : [ '20', '100' ],

                                textStyle : {
                                    fontSize : 30,
                                    fontWeight : 'bolder',
                                    color : '#fff'
                                }
                            },
                            backgroundColor : '#044161',

                            tooltip : {
                                trigger : 'item'
                            },
                            toolbox : {
                                show : false,
                            },
                            series : [ {
                                tooltip : {
                                    trigger : 'item',
                                    formatter : '{b}'
                                },
                                name : '选择器',
                                type : 'map',
                                mapType : 'china',
                                mapLocation : {
                                    x : 'left',
                                    y : 'center',
                                    width : '25%'
                                },
                                roam : true,
                                selectedMode : 'single',
                                itemStyle : {
                                    normal : {
                                        borderColor : 'rgba(100,149,237,1)',
                                        borderWidth : 0.5,
                                        areaStyle : {
                                            color : '#004981'
                                        }
                                    },
                                    emphasis : {
                                        label : {
                                            show : true
                                        },
                                        areaStyle : {
                                            color : '#CCBB1A'
                                        }
                                    }
                                },
                                data : [ {
                                    name : '北京',
                                    selected : false
                                }, {
                                    name : '天津',
                                    selected : false
                                }, {
                                    name : '上海',
                                    selected : false
                                }, {
                                    name : '重庆',
                                    selected : false
                                }, {
                                    name : '河北',
                                    selected : false
                                }, {
                                    name : '河南',
                                    selected : false
                                }, {
                                    name : '云南',
                                    selected : false
                                }, {
                                    name : '辽宁',
                                    selected : false
                                }, {
                                    name : '黑龙江',
                                    selected : false
                                }, {
                                    name : '湖南',
                                    selected : false
                                }, {
                                    name : '安徽',
                                    selected : false
                                }, {
                                    name : '山东',
                                    selected : false
                                }, {
                                    name : '新疆',
                                    selected : false
                                }, {
                                    name : '江苏',
                                    selected : false
                                }, {
                                    name : '浙江',
                                    selected : false
                                }, {
                                    name : '江西',
                                    selected : false
                                }, {
                                    name : '湖北',
                                    selected : false
                                }, {
                                    name : '广西',
                                    selected : false
                                }, {
                                    name : '甘肃',
                                    selected : false
                                }, {
                                    name : '山西',
                                    selected : false
                                }, {
                                    name : '内蒙古',
                                    selected : false
                                }, {
                                    name : '陕西',
                                    selected : false
                                }, {
                                    name : '吉林',
                                    selected : false
                                }, {
                                    name : '福建',
                                    selected : false
                                }, {
                                    name : '贵州',
                                    selected : false
                                }, {
                                    name : '广东',
                                    selected : false
                                }, {
                                    name : '青海',
                                    selected : false
                                }, {
                                    name : '西藏',
                                    selected : false
                                }, {
                                    name : '四川',
                                    selected : false
                                }, {
                                    name : '宁夏',
                                    selected : false
                                }, {
                                    name : '海南',
                                    selected : false
                                }, {
                                    name : '台湾',
                                    selected : false
                                }, {
                                    name : '香港',
                                    selected : false
                                }, {
                                    name : '澳门',
                                    selected : false
                                } ]
                            } ],
                            animation : false
                        };
                        var ecConfig = require('echarts/config');
                        myChart
                                .on(
                                        ecConfig.EVENT.MAP_SELECTED,
                                        function(param) {
                                            var selected = param.selected;
                                            var selectedProvince;
                                            var name;
                                            for (var i = 0, l = option.series[0].data.length; i < l; i++) {
                                                name = option.series[0].data[i].name;
                                                option.series[0].data[i].selected = selected[name];
                                                if (selected[name]) {
                                                    selectedProvince = name;
                                                }
                                            }
                                            if (typeof selectedProvince == 'undefined') {
                                                option.series.splice(1);
                                                option.legend = null;
                                                option.dataRange = null;
                                                myChart.setOption(option, true);
                                                return;
                                            }
                                            option.series[1] = {
                                                name : '用户活跃度',
                                                type : 'map',
                                                mapType : selectedProvince,
                                                itemStyle : {
                                                    normal : {
                                                        label : {
                                                            show : true
                                                        }
                                                    },
                                                    emphasis : {
                                                        label : {
                                                            show : true
                                                        }
                                                    }
                                                },
                                                mapLocation : {
                                                    x : '40%'
                                                },
                                                roam : true,
                                                data : [
                                                        {
                                                            name : '重庆市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '北京市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '天津市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '上海市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '香港',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '澳门',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '巴音郭楞蒙古自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '和田地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '哈密地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阿克苏地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阿勒泰地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '喀什地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '塔城地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '昌吉回族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '克孜勒苏柯尔克孜自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '吐鲁番地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '伊犁哈萨克自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '博尔塔拉蒙古自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '乌鲁木齐市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '克拉玛依市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阿拉尔市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '图木舒克市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '五家渠市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '石河子市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '那曲地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阿里地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '日喀则地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '林芝地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '昌都地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '山南地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '拉萨市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '呼伦贝尔市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阿拉善盟',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '锡林郭勒盟',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '鄂尔多斯市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '赤峰市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '巴彦淖尔市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '通辽市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '乌兰察布市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '兴安盟',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '包头市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '呼和浩特市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '乌海市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '海西蒙古族藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '玉树藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '果洛藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '海南藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '海北藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黄南藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '海东地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '西宁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '甘孜藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阿坝藏族羌族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '凉山彝族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '绵阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '达州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '广元市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '雅安市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宜宾市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '乐山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '南充市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '巴中市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '泸州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '成都市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '资阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '攀枝花市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '眉山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '广安市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '德阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '内江市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '遂宁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '自贡市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黑河市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '大兴安岭地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '哈尔滨市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '齐齐哈尔市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '牡丹江市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '绥化市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '伊春市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '佳木斯市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '鸡西市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '双鸭山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '大庆市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '鹤岗市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '七台河市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '酒泉市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '张掖市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '甘南藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '武威市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '陇南市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '庆阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '白银市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '定西市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '天水市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '兰州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '平凉市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '临夏回族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '金昌市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '嘉峪关市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '普洱市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '红河哈尼族彝族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '文山壮族苗族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '曲靖市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '楚雄彝族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '大理白族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '临沧市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '迪庆藏族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '昭通市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '昆明市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '丽江市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '西双版纳傣族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '保山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '玉溪市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '怒江傈僳族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '德宏傣族景颇族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '百色市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '河池市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '桂林市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '南宁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '柳州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '崇左市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '来宾市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '玉林市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '梧州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '贺州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '钦州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '贵港市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '防城港市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '北海市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '怀化市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '永州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '邵阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '郴州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '常德市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '湘西土家族苗族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '衡阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '岳阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '益阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '长沙市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '株洲市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '张家界市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '娄底市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '湘潭市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '榆林市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '延安市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '汉中市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '安康市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '商洛市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宝鸡市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '渭南市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '咸阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '西安市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '铜川市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '清远市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '韶关市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '湛江市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '梅州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '河源市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '肇庆市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '惠州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '茂名市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '江门市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阳江市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '云浮市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '广州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '汕尾市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '揭阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '珠海市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '佛山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '潮州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '汕头市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '深圳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '东莞市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '中山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '延边朝鲜族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '吉林市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '白城市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '松原市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '长春市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '白山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '通化市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '四平市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '辽源市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '承德市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '张家口市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '保定市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '唐山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '沧州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '石家庄市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '邢台市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '邯郸市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '秦皇岛市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '衡水市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '廊坊市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '恩施土家族苗族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '十堰市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宜昌市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '襄樊市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黄冈市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '荆州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '荆门市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '咸宁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '随州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '孝感市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '武汉市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黄石市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '神农架林区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '天门市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '仙桃市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '潜江市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '鄂州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '遵义市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黔东南苗族侗族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '毕节地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黔南布依族苗族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '铜仁地区',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黔西南布依族苗族自治州',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '六盘水市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '安顺市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '贵阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '烟台市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '临沂市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '潍坊市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '青岛市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '菏泽市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '济宁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '德州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '滨州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '聊城市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '东营市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '济南市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '泰安市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '威海市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '日照市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '淄博市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '枣庄市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '莱芜市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '赣州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '吉安市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '上饶市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '九江市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '抚州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宜春市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '南昌市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '景德镇市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '萍乡市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '鹰潭市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '新余市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '南阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '信阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '洛阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '驻马店市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '周口市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '商丘市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '三门峡市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '新乡市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '平顶山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '郑州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '安阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '开封市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '焦作市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '许昌市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '濮阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '漯河市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '鹤壁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '大连市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '朝阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '丹东市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '铁岭市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '沈阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '抚顺市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '葫芦岛市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阜新市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '锦州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '鞍山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '本溪市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '营口市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '辽阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '盘锦市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '忻州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '吕梁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '临汾市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '晋中市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '运城市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '大同市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '长治市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '朔州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '晋城市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '太原市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阳泉市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '六安市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '安庆市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '滁州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宣城市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '阜阳市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宿州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '黄山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '巢湖市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '亳州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '池州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '合肥市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '蚌埠市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '芜湖市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '淮北市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '淮南市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '马鞍山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '铜陵市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '南平市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '三明市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '龙岩市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宁德市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '福州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '漳州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '泉州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '莆田市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '厦门市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '丽水市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '杭州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '温州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '宁波市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '舟山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '台州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '金华市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '衢州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '绍兴市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '嘉兴市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '湖州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '盐城市',
                                                            value : datas2
                                                        }, //====
                                                        {
                                                            name : '徐州市',
                                                            value : datas3
                                                        },
                                                        {
                                                            name : '南通市',
                                                            value : datas4
                                                        },
                                                        {
                                                            name : '淮安市',
                                                            value : datas5
                                                        },
                                                        {
                                                            name : '苏州市',
                                                            value : datas6
                                                        },
                                                        {
                                                            name : '宿迁市',
                                                            value : datas7
                                                        },
                                                        {
                                                            name : '连云港市',
                                                            value : datas8
                                                        },
                                                        {
                                                            name : '扬州市',
                                                            value : datas9
                                                        },
                                                        {
                                                            name : '南京市',
                                                            value : datas1
                                                        },
                                                        {
                                                            name : '泰州市',
                                                            value : datas10
                                                        },
                                                        {
                                                            name : '无锡市',
                                                            value : datas11
                                                        },
                                                        {
                                                            name : '常州市',
                                                            value : datas12
                                                        },
                                                        {
                                                            name : '镇江市',
                                                            value : datas13
                                                        }, //====
                                                        {
                                                            name : '吴忠市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '中卫市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '固原市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '银川市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '石嘴山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '儋州市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '文昌市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '乐东黎族自治县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '三亚市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '琼中黎族苗族自治县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '东方市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '海口市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '万宁市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '澄迈县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '白沙黎族自治县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '琼海市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '昌江黎族自治县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '临高县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '陵水黎族自治县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '屯昌县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '定安县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '保亭黎族苗族自治县',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        },
                                                        {
                                                            name : '五指山市',
                                                            value : Math
                                                                    .round(Math
                                                                            .random() * 1000)
                                                        } ]
                                            };
                                            //
                                            option.dataRange = {
                                                orient : 'horizontal',
                                                x : 'right',
                                                min : 0,
                                                max : 100,
                                                color : [ 'red', 'yellow' ],
                                                text : [ '高', '低' ], // 文本,默认为数值文本
                                                splitNumber : 0,
                                                textStyle : {
                                                    color : '#fff'
                                                }
                                            };
                                            myChart.setOption(option, true);
                                        })
                        myChart.setOption(option);

                    });
        </script>


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值