mix5.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="ECharts">
  8. <meta name="author" content="kener.linfeng@gmail.com">
  9. <title>ECharts · Example</title>
  10. <link rel="shortcut icon" href="../asset/ico/favicon.png">
  11. <link href="../asset/css/font-awesome.min.css" rel="stylesheet">
  12. <link href="../asset/css/bootstrap.css" rel="stylesheet">
  13. <link href="../asset/css/carousel.css" rel="stylesheet">
  14. <link href="../asset/css/echartsHome.css" rel="stylesheet">
  15. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. <script src="./www/js/echarts.js"></script>
  21. <script src="../asset/js/codemirror.js"></script>
  22. <script src="../asset/js/javascript.js"></script>
  23. <link href="../asset/css/codemirror.css" rel="stylesheet">
  24. <link href="../asset/css/monokai.css" rel="stylesheet">
  25. <style type="text/css">
  26. .CodeMirror {
  27. height: 550px;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <!-- Fixed navbar -->
  33. <div class="navbar navbar-default navbar-fixed-top" role="navigation" id="head"></div>
  34. <div class="container-fluid">
  35. <div class="row-fluid example">
  36. <div id="sidebar-code" class="col-md-4">
  37. <div class="well sidebar-nav">
  38. <div class="nav-header"><a href="#" onclick="autoResize()" class="glyphicon glyphicon-resize-full" id ="icon-resize" ></a>option</div>
  39. <textarea id="code" name="code">
  40. option = {
  41. tooltip : {
  42. trigger: 'item'
  43. },
  44. toolbox: {
  45. show : true,
  46. orient: 'vertical',
  47. x:'right',
  48. y:'center',
  49. feature : {
  50. mark : {show: true},
  51. dataView : {show: true, readOnly: false}
  52. }
  53. },
  54. series : [
  55. {
  56. tooltip: {
  57. trigger: 'item',
  58. formatter: '{b}'
  59. },
  60. name: '选择器',
  61. type: 'map',
  62. mapType: 'china',
  63. mapLocation: {
  64. x: 'left',
  65. y: 'top',
  66. width: '30%'
  67. },
  68. roam: true,
  69. selectedMode : 'single',
  70. itemStyle:{
  71. //normal:{label:{show:true}},
  72. emphasis:{label:{show:true}}
  73. },
  74. data:[
  75. {name: '北京', selected:false},
  76. {name: '天津', selected:false},
  77. {name: '上海', selected:false},
  78. {name: '重庆', selected:false},
  79. {name: '河北', selected:false},
  80. {name: '河南', selected:false},
  81. {name: '云南', selected:false},
  82. {name: '辽宁', selected:false},
  83. {name: '黑龙江', selected:false},
  84. {name: '湖南', selected:false},
  85. {name: '安徽', selected:false},
  86. {name: '山东', selected:false},
  87. {name: '新疆', selected:false},
  88. {name: '江苏', selected:false},
  89. {name: '浙江', selected:false},
  90. {name: '江西', selected:false},
  91. {name: '湖北', selected:false},
  92. {name: '广西', selected:false},
  93. {name: '甘肃', selected:false},
  94. {name: '山西', selected:false},
  95. {name: '内蒙古', selected:false},
  96. {name: '陕西', selected:false},
  97. {name: '吉林', selected:false},
  98. {name: '福建', selected:false},
  99. {name: '贵州', selected:false},
  100. {name: '广东', selected:false},
  101. {name: '青海', selected:false},
  102. {name: '西藏', selected:false},
  103. {name: '四川', selected:false},
  104. {name: '宁夏', selected:false},
  105. {name: '海南', selected:false},
  106. {name: '台湾', selected:false},
  107. {name: '香港', selected:false},
  108. {name: '澳门', selected:false}
  109. ]
  110. }
  111. ],
  112. animation: false
  113. };
  114. var ecConfig = require('echarts/config');
  115. myChart.on(ecConfig.EVENT.MAP_SELECTED, function (param){
  116. var selected = param.selected;
  117. var selectedProvince;
  118. var name;
  119. for (var i = 0, l = option.series[0].data.length; i < l; i++) {
  120. name = option.series[0].data[i].name;
  121. option.series[0].data[i].selected = selected[name];
  122. if (selected[name]) {
  123. selectedProvince = name;
  124. }
  125. }
  126. if (typeof selectedProvince == 'undefined') {
  127. option.series.splice(1);
  128. option.legend = null;
  129. option.dataRange = null;
  130. myChart.setOption(option, true);
  131. return;
  132. }
  133. option.series[1] = {
  134. name: '随机数据',
  135. type: 'map',
  136. mapType: selectedProvince,
  137. itemStyle:{
  138. normal:{label:{show:true}},
  139. emphasis:{label:{show:true}}
  140. },
  141. mapLocation: {
  142. x: '35%'
  143. },
  144. roam: true,
  145. data:[
  146. {name: '重庆市',value: Math.round(Math.random()*1000)},
  147. {name: '北京市',value: Math.round(Math.random()*1000)},
  148. {name: '天津市',value: Math.round(Math.random()*1000)},
  149. {name: '上海市',value: Math.round(Math.random()*1000)},
  150. {name: '香港',value: Math.round(Math.random()*1000)},
  151. {name: '澳门',value: Math.round(Math.random()*1000)},
  152. {name: '巴音郭楞蒙古自治州',value: Math.round(Math.random()*1000)},
  153. {name: '和田地区',value: Math.round(Math.random()*1000)},
  154. {name: '哈密地区',value: Math.round(Math.random()*1000)},
  155. {name: '阿克苏地区',value: Math.round(Math.random()*1000)},
  156. {name: '阿勒泰地区',value: Math.round(Math.random()*1000)},
  157. {name: '喀什地区',value: Math.round(Math.random()*1000)},
  158. {name: '塔城地区',value: Math.round(Math.random()*1000)},
  159. {name: '昌吉回族自治州',value: Math.round(Math.random()*1000)},
  160. {name: '克孜勒苏柯尔克孜自治州',value: Math.round(Math.random()*1000)},
  161. {name: '吐鲁番地区',value: Math.round(Math.random()*1000)},
  162. {name: '伊犁哈萨克自治州',value: Math.round(Math.random()*1000)},
  163. {name: '博尔塔拉蒙古自治州',value: Math.round(Math.random()*1000)},
  164. {name: '乌鲁木齐市',value: Math.round(Math.random()*1000)},
  165. {name: '克拉玛依市',value: Math.round(Math.random()*1000)},
  166. {name: '阿拉尔市',value: Math.round(Math.random()*1000)},
  167. {name: '图木舒克市',value: Math.round(Math.random()*1000)},
  168. {name: '五家渠市',value: Math.round(Math.random()*1000)},
  169. {name: '石河子市',value: Math.round(Math.random()*1000)},
  170. {name: '那曲地区',value: Math.round(Math.random()*1000)},
  171. {name: '阿里地区',value: Math.round(Math.random()*1000)},
  172. {name: '日喀则地区',value: Math.round(Math.random()*1000)},
  173. {name: '林芝地区',value: Math.round(Math.random()*1000)},
  174. {name: '昌都地区',value: Math.round(Math.random()*1000)},
  175. {name: '山南地区',value: Math.round(Math.random()*1000)},
  176. {name: '拉萨市',value: Math.round(Math.random()*1000)},
  177. {name: '呼伦贝尔市',value: Math.round(Math.random()*1000)},
  178. {name: '阿拉善盟',value: Math.round(Math.random()*1000)},
  179. {name: '锡林郭勒盟',value: Math.round(Math.random()*1000)},
  180. {name: '鄂尔多斯市',value: Math.round(Math.random()*1000)},
  181. {name: '赤峰市',value: Math.round(Math.random()*1000)},
  182. {name: '巴彦淖尔市',value: Math.round(Math.random()*1000)},
  183. {name: '通辽市',value: Math.round(Math.random()*1000)},
  184. {name: '乌兰察布市',value: Math.round(Math.random()*1000)},
  185. {name: '兴安盟',value: Math.round(Math.random()*1000)},
  186. {name: '包头市',value: Math.round(Math.random()*1000)},
  187. {name: '呼和浩特市',value: Math.round(Math.random()*1000)},
  188. {name: '乌海市',value: Math.round(Math.random()*1000)},
  189. {name: '海西蒙古族藏族自治州',value: Math.round(Math.random()*1000)},
  190. {name: '玉树藏族自治州',value: Math.round(Math.random()*1000)},
  191. {name: '果洛藏族自治州',value: Math.round(Math.random()*1000)},
  192. {name: '海南藏族自治州',value: Math.round(Math.random()*1000)},
  193. {name: '海北藏族自治州',value: Math.round(Math.random()*1000)},
  194. {name: '黄南藏族自治州',value: Math.round(Math.random()*1000)},
  195. {name: '海东地区',value: Math.round(Math.random()*1000)},
  196. {name: '西宁市',value: Math.round(Math.random()*1000)},
  197. {name: '甘孜藏族自治州',value: Math.round(Math.random()*1000)},
  198. {name: '阿坝藏族羌族自治州',value: Math.round(Math.random()*1000)},
  199. {name: '凉山彝族自治州',value: Math.round(Math.random()*1000)},
  200. {name: '绵阳市',value: Math.round(Math.random()*1000)},
  201. {name: '达州市',value: Math.round(Math.random()*1000)},
  202. {name: '广元市',value: Math.round(Math.random()*1000)},
  203. {name: '雅安市',value: Math.round(Math.random()*1000)},
  204. {name: '宜宾市',value: Math.round(Math.random()*1000)},
  205. {name: '乐山市',value: Math.round(Math.random()*1000)},
  206. {name: '南充市',value: Math.round(Math.random()*1000)},
  207. {name: '巴中市',value: Math.round(Math.random()*1000)},
  208. {name: '泸州市',value: Math.round(Math.random()*1000)},
  209. {name: '成都市',value: Math.round(Math.random()*1000)},
  210. {name: '资阳市',value: Math.round(Math.random()*1000)},
  211. {name: '攀枝花市',value: Math.round(Math.random()*1000)},
  212. {name: '眉山市',value: Math.round(Math.random()*1000)},
  213. {name: '广安市',value: Math.round(Math.random()*1000)},
  214. {name: '德阳市',value: Math.round(Math.random()*1000)},
  215. {name: '内江市',value: Math.round(Math.random()*1000)},
  216. {name: '遂宁市',value: Math.round(Math.random()*1000)},
  217. {name: '自贡市',value: Math.round(Math.random()*1000)},
  218. {name: '黑河市',value: Math.round(Math.random()*1000)},
  219. {name: '大兴安岭地区',value: Math.round(Math.random()*1000)},
  220. {name: '哈尔滨市',value: Math.round(Math.random()*1000)},
  221. {name: '齐齐哈尔市',value: Math.round(Math.random()*1000)},
  222. {name: '牡丹江市',value: Math.round(Math.random()*1000)},
  223. {name: '绥化市',value: Math.round(Math.random()*1000)},
  224. {name: '伊春市',value: Math.round(Math.random()*1000)},
  225. {name: '佳木斯市',value: Math.round(Math.random()*1000)},
  226. {name: '鸡西市',value: Math.round(Math.random()*1000)},
  227. {name: '双鸭山市',value: Math.round(Math.random()*1000)},
  228. {name: '大庆市',value: Math.round(Math.random()*1000)},
  229. {name: '鹤岗市',value: Math.round(Math.random()*1000)},
  230. {name: '七台河市',value: Math.round(Math.random()*1000)},
  231. {name: '酒泉市',value: Math.round(Math.random()*1000)},
  232. {name: '张掖市',value: Math.round(Math.random()*1000)},
  233. {name: '甘南藏族自治州',value: Math.round(Math.random()*1000)},
  234. {name: '武威市',value: Math.round(Math.random()*1000)},
  235. {name: '陇南市',value: Math.round(Math.random()*1000)},
  236. {name: '庆阳市',value: Math.round(Math.random()*1000)},
  237. {name: '白银市',value: Math.round(Math.random()*1000)},
  238. {name: '定西市',value: Math.round(Math.random()*1000)},
  239. {name: '天水市',value: Math.round(Math.random()*1000)},
  240. {name: '兰州市',value: Math.round(Math.random()*1000)},
  241. {name: '平凉市',value: Math.round(Math.random()*1000)},
  242. {name: '临夏回族自治州',value: Math.round(Math.random()*1000)},
  243. {name: '金昌市',value: Math.round(Math.random()*1000)},
  244. {name: '嘉峪关市',value: Math.round(Math.random()*1000)},
  245. {name: '普洱市',value: Math.round(Math.random()*1000)},
  246. {name: '红河哈尼族彝族自治州',value: Math.round(Math.random()*1000)},
  247. {name: '文山壮族苗族自治州',value: Math.round(Math.random()*1000)},
  248. {name: '曲靖市',value: Math.round(Math.random()*1000)},
  249. {name: '楚雄彝族自治州',value: Math.round(Math.random()*1000)},
  250. {name: '大理白族自治州',value: Math.round(Math.random()*1000)},
  251. {name: '临沧市',value: Math.round(Math.random()*1000)},
  252. {name: '迪庆藏族自治州',value: Math.round(Math.random()*1000)},
  253. {name: '昭通市',value: Math.round(Math.random()*1000)},
  254. {name: '昆明市',value: Math.round(Math.random()*1000)},
  255. {name: '丽江市',value: Math.round(Math.random()*1000)},
  256. {name: '西双版纳傣族自治州',value: Math.round(Math.random()*1000)},
  257. {name: '保山市',value: Math.round(Math.random()*1000)},
  258. {name: '玉溪市',value: Math.round(Math.random()*1000)},
  259. {name: '怒江傈僳族自治州',value: Math.round(Math.random()*1000)},
  260. {name: '德宏傣族景颇族自治州',value: Math.round(Math.random()*1000)},
  261. {name: '百色市',value: Math.round(Math.random()*1000)},
  262. {name: '河池市',value: Math.round(Math.random()*1000)},
  263. {name: '桂林市',value: Math.round(Math.random()*1000)},
  264. {name: '南宁市',value: Math.round(Math.random()*1000)},
  265. {name: '柳州市',value: Math.round(Math.random()*1000)},
  266. {name: '崇左市',value: Math.round(Math.random()*1000)},
  267. {name: '来宾市',value: Math.round(Math.random()*1000)},
  268. {name: '玉林市',value: Math.round(Math.random()*1000)},
  269. {name: '梧州市',value: Math.round(Math.random()*1000)},
  270. {name: '贺州市',value: Math.round(Math.random()*1000)},
  271. {name: '钦州市',value: Math.round(Math.random()*1000)},
  272. {name: '贵港市',value: Math.round(Math.random()*1000)},
  273. {name: '防城港市',value: Math.round(Math.random()*1000)},
  274. {name: '北海市',value: Math.round(Math.random()*1000)},
  275. {name: '怀化市',value: Math.round(Math.random()*1000)},
  276. {name: '永州市',value: Math.round(Math.random()*1000)},
  277. {name: '邵阳市',value: Math.round(Math.random()*1000)},
  278. {name: '郴州市',value: Math.round(Math.random()*1000)},
  279. {name: '常德市',value: Math.round(Math.random()*1000)},
  280. {name: '湘西土家族苗族自治州',value: Math.round(Math.random()*1000)},
  281. {name: '衡阳市',value: Math.round(Math.random()*1000)},
  282. {name: '岳阳市',value: Math.round(Math.random()*1000)},
  283. {name: '益阳市',value: Math.round(Math.random()*1000)},
  284. {name: '长沙市',value: Math.round(Math.random()*1000)},
  285. {name: '株洲市',value: Math.round(Math.random()*1000)},
  286. {name: '张家界市',value: Math.round(Math.random()*1000)},
  287. {name: '娄底市',value: Math.round(Math.random()*1000)},
  288. {name: '湘潭市',value: Math.round(Math.random()*1000)},
  289. {name: '榆林市',value: Math.round(Math.random()*1000)},
  290. {name: '延安市',value: Math.round(Math.random()*1000)},
  291. {name: '汉中市',value: Math.round(Math.random()*1000)},
  292. {name: '安康市',value: Math.round(Math.random()*1000)},
  293. {name: '商洛市',value: Math.round(Math.random()*1000)},
  294. {name: '宝鸡市',value: Math.round(Math.random()*1000)},
  295. {name: '渭南市',value: Math.round(Math.random()*1000)},
  296. {name: '咸阳市',value: Math.round(Math.random()*1000)},
  297. {name: '西安市',value: Math.round(Math.random()*1000)},
  298. {name: '铜川市',value: Math.round(Math.random()*1000)},
  299. {name: '清远市',value: Math.round(Math.random()*1000)},
  300. {name: '韶关市',value: Math.round(Math.random()*1000)},
  301. {name: '湛江市',value: Math.round(Math.random()*1000)},
  302. {name: '梅州市',value: Math.round(Math.random()*1000)},
  303. {name: '河源市',value: Math.round(Math.random()*1000)},
  304. {name: '肇庆市',value: Math.round(Math.random()*1000)},
  305. {name: '惠州市',value: Math.round(Math.random()*1000)},
  306. {name: '茂名市',value: Math.round(Math.random()*1000)},
  307. {name: '江门市',value: Math.round(Math.random()*1000)},
  308. {name: '阳江市',value: Math.round(Math.random()*1000)},
  309. {name: '云浮市',value: Math.round(Math.random()*1000)},
  310. {name: '广州市',value: Math.round(Math.random()*1000)},
  311. {name: '汕尾市',value: Math.round(Math.random()*1000)},
  312. {name: '揭阳市',value: Math.round(Math.random()*1000)},
  313. {name: '珠海市',value: Math.round(Math.random()*1000)},
  314. {name: '佛山市',value: Math.round(Math.random()*1000)},
  315. {name: '潮州市',value: Math.round(Math.random()*1000)},
  316. {name: '汕头市',value: Math.round(Math.random()*1000)},
  317. {name: '深圳市',value: Math.round(Math.random()*1000)},
  318. {name: '东莞市',value: Math.round(Math.random()*1000)},
  319. {name: '中山市',value: Math.round(Math.random()*1000)},
  320. {name: '延边朝鲜族自治州',value: Math.round(Math.random()*1000)},
  321. {name: '吉林市',value: Math.round(Math.random()*1000)},
  322. {name: '白城市',value: Math.round(Math.random()*1000)},
  323. {name: '松原市',value: Math.round(Math.random()*1000)},
  324. {name: '长春市',value: Math.round(Math.random()*1000)},
  325. {name: '白山市',value: Math.round(Math.random()*1000)},
  326. {name: '通化市',value: Math.round(Math.random()*1000)},
  327. {name: '四平市',value: Math.round(Math.random()*1000)},
  328. {name: '辽源市',value: Math.round(Math.random()*1000)},
  329. {name: '承德市',value: Math.round(Math.random()*1000)},
  330. {name: '张家口市',value: Math.round(Math.random()*1000)},
  331. {name: '保定市',value: Math.round(Math.random()*1000)},
  332. {name: '唐山市',value: Math.round(Math.random()*1000)},
  333. {name: '沧州市',value: Math.round(Math.random()*1000)},
  334. {name: '石家庄市',value: Math.round(Math.random()*1000)},
  335. {name: '邢台市',value: Math.round(Math.random()*1000)},
  336. {name: '邯郸市',value: Math.round(Math.random()*1000)},
  337. {name: '秦皇岛市',value: Math.round(Math.random()*1000)},
  338. {name: '衡水市',value: Math.round(Math.random()*1000)},
  339. {name: '廊坊市',value: Math.round(Math.random()*1000)},
  340. {name: '恩施土家族苗族自治州',value: Math.round(Math.random()*1000)},
  341. {name: '十堰市',value: Math.round(Math.random()*1000)},
  342. {name: '宜昌市',value: Math.round(Math.random()*1000)},
  343. {name: '襄樊市',value: Math.round(Math.random()*1000)},
  344. {name: '黄冈市',value: Math.round(Math.random()*1000)},
  345. {name: '荆州市',value: Math.round(Math.random()*1000)},
  346. {name: '荆门市',value: Math.round(Math.random()*1000)},
  347. {name: '咸宁市',value: Math.round(Math.random()*1000)},
  348. {name: '随州市',value: Math.round(Math.random()*1000)},
  349. {name: '孝感市',value: Math.round(Math.random()*1000)},
  350. {name: '武汉市',value: Math.round(Math.random()*1000)},
  351. {name: '黄石市',value: Math.round(Math.random()*1000)},
  352. {name: '神农架林区',value: Math.round(Math.random()*1000)},
  353. {name: '天门市',value: Math.round(Math.random()*1000)},
  354. {name: '仙桃市',value: Math.round(Math.random()*1000)},
  355. {name: '潜江市',value: Math.round(Math.random()*1000)},
  356. {name: '鄂州市',value: Math.round(Math.random()*1000)},
  357. {name: '遵义市',value: Math.round(Math.random()*1000)},
  358. {name: '黔东南苗族侗族自治州',value: Math.round(Math.random()*1000)},
  359. {name: '毕节地区',value: Math.round(Math.random()*1000)},
  360. {name: '黔南布依族苗族自治州',value: Math.round(Math.random()*1000)},
  361. {name: '铜仁地区',value: Math.round(Math.random()*1000)},
  362. {name: '黔西南布依族苗族自治州',value: Math.round(Math.random()*1000)},
  363. {name: '六盘水市',value: Math.round(Math.random()*1000)},
  364. {name: '安顺市',value: Math.round(Math.random()*1000)},
  365. {name: '贵阳市',value: Math.round(Math.random()*1000)},
  366. {name: '烟台市',value: Math.round(Math.random()*1000)},
  367. {name: '临沂市',value: Math.round(Math.random()*1000)},
  368. {name: '潍坊市',value: Math.round(Math.random()*1000)},
  369. {name: '青岛市',value: Math.round(Math.random()*1000)},
  370. {name: '菏泽市',value: Math.round(Math.random()*1000)},
  371. {name: '济宁市',value: Math.round(Math.random()*1000)},
  372. {name: '德州市',value: Math.round(Math.random()*1000)},
  373. {name: '滨州市',value: Math.round(Math.random()*1000)},
  374. {name: '聊城市',value: Math.round(Math.random()*1000)},
  375. {name: '东营市',value: Math.round(Math.random()*1000)},
  376. {name: '济南市',value: Math.round(Math.random()*1000)},
  377. {name: '泰安市',value: Math.round(Math.random()*1000)},
  378. {name: '威海市',value: Math.round(Math.random()*1000)},
  379. {name: '日照市',value: Math.round(Math.random()*1000)},
  380. {name: '淄博市',value: Math.round(Math.random()*1000)},
  381. {name: '枣庄市',value: Math.round(Math.random()*1000)},
  382. {name: '莱芜市',value: Math.round(Math.random()*1000)},
  383. {name: '赣州市',value: Math.round(Math.random()*1000)},
  384. {name: '吉安市',value: Math.round(Math.random()*1000)},
  385. {name: '上饶市',value: Math.round(Math.random()*1000)},
  386. {name: '九江市',value: Math.round(Math.random()*1000)},
  387. {name: '抚州市',value: Math.round(Math.random()*1000)},
  388. {name: '宜春市',value: Math.round(Math.random()*1000)},
  389. {name: '南昌市',value: Math.round(Math.random()*1000)},
  390. {name: '景德镇市',value: Math.round(Math.random()*1000)},
  391. {name: '萍乡市',value: Math.round(Math.random()*1000)},
  392. {name: '鹰潭市',value: Math.round(Math.random()*1000)},
  393. {name: '新余市',value: Math.round(Math.random()*1000)},
  394. {name: '南阳市',value: Math.round(Math.random()*1000)},
  395. {name: '信阳市',value: Math.round(Math.random()*1000)},
  396. {name: '洛阳市',value: Math.round(Math.random()*1000)},
  397. {name: '驻马店市',value: Math.round(Math.random()*1000)},
  398. {name: '周口市',value: Math.round(Math.random()*1000)},
  399. {name: '商丘市',value: Math.round(Math.random()*1000)},
  400. {name: '三门峡市',value: Math.round(Math.random()*1000)},
  401. {name: '新乡市',value: Math.round(Math.random()*1000)},
  402. {name: '平顶山市',value: Math.round(Math.random()*1000)},
  403. {name: '郑州市',value: Math.round(Math.random()*1000)},
  404. {name: '安阳市',value: Math.round(Math.random()*1000)},
  405. {name: '开封市',value: Math.round(Math.random()*1000)},
  406. {name: '焦作市',value: Math.round(Math.random()*1000)},
  407. {name: '许昌市',value: Math.round(Math.random()*1000)},
  408. {name: '濮阳市',value: Math.round(Math.random()*1000)},
  409. {name: '漯河市',value: Math.round(Math.random()*1000)},
  410. {name: '鹤壁市',value: Math.round(Math.random()*1000)},
  411. {name: '大连市',value: Math.round(Math.random()*1000)},
  412. {name: '朝阳市',value: Math.round(Math.random()*1000)},
  413. {name: '丹东市',value: Math.round(Math.random()*1000)},
  414. {name: '铁岭市',value: Math.round(Math.random()*1000)},
  415. {name: '沈阳市',value: Math.round(Math.random()*1000)},
  416. {name: '抚顺市',value: Math.round(Math.random()*1000)},
  417. {name: '葫芦岛市',value: Math.round(Math.random()*1000)},
  418. {name: '阜新市',value: Math.round(Math.random()*1000)},
  419. {name: '锦州市',value: Math.round(Math.random()*1000)},
  420. {name: '鞍山市',value: Math.round(Math.random()*1000)},
  421. {name: '本溪市',value: Math.round(Math.random()*1000)},
  422. {name: '营口市',value: Math.round(Math.random()*1000)},
  423. {name: '辽阳市',value: Math.round(Math.random()*1000)},
  424. {name: '盘锦市',value: Math.round(Math.random()*1000)},
  425. {name: '忻州市',value: Math.round(Math.random()*1000)},
  426. {name: '吕梁市',value: Math.round(Math.random()*1000)},
  427. {name: '临汾市',value: Math.round(Math.random()*1000)},
  428. {name: '晋中市',value: Math.round(Math.random()*1000)},
  429. {name: '运城市',value: Math.round(Math.random()*1000)},
  430. {name: '大同市',value: Math.round(Math.random()*1000)},
  431. {name: '长治市',value: Math.round(Math.random()*1000)},
  432. {name: '朔州市',value: Math.round(Math.random()*1000)},
  433. {name: '晋城市',value: Math.round(Math.random()*1000)},
  434. {name: '太原市',value: Math.round(Math.random()*1000)},
  435. {name: '阳泉市',value: Math.round(Math.random()*1000)},
  436. {name: '六安市',value: Math.round(Math.random()*1000)},
  437. {name: '安庆市',value: Math.round(Math.random()*1000)},
  438. {name: '滁州市',value: Math.round(Math.random()*1000)},
  439. {name: '宣城市',value: Math.round(Math.random()*1000)},
  440. {name: '阜阳市',value: Math.round(Math.random()*1000)},
  441. {name: '宿州市',value: Math.round(Math.random()*1000)},
  442. {name: '黄山市',value: Math.round(Math.random()*1000)},
  443. {name: '巢湖市',value: Math.round(Math.random()*1000)},
  444. {name: '亳州市',value: Math.round(Math.random()*1000)},
  445. {name: '池州市',value: Math.round(Math.random()*1000)},
  446. {name: '合肥市',value: Math.round(Math.random()*1000)},
  447. {name: '蚌埠市',value: Math.round(Math.random()*1000)},
  448. {name: '芜湖市',value: Math.round(Math.random()*1000)},
  449. {name: '淮北市',value: Math.round(Math.random()*1000)},
  450. {name: '淮南市',value: Math.round(Math.random()*1000)},
  451. {name: '马鞍山市',value: Math.round(Math.random()*1000)},
  452. {name: '铜陵市',value: Math.round(Math.random()*1000)},
  453. {name: '南平市',value: Math.round(Math.random()*1000)},
  454. {name: '三明市',value: Math.round(Math.random()*1000)},
  455. {name: '龙岩市',value: Math.round(Math.random()*1000)},
  456. {name: '宁德市',value: Math.round(Math.random()*1000)},
  457. {name: '福州市',value: Math.round(Math.random()*1000)},
  458. {name: '漳州市',value: Math.round(Math.random()*1000)},
  459. {name: '泉州市',value: Math.round(Math.random()*1000)},
  460. {name: '莆田市',value: Math.round(Math.random()*1000)},
  461. {name: '厦门市',value: Math.round(Math.random()*1000)},
  462. {name: '丽水市',value: Math.round(Math.random()*1000)},
  463. {name: '杭州市',value: Math.round(Math.random()*1000)},
  464. {name: '温州市',value: Math.round(Math.random()*1000)},
  465. {name: '宁波市',value: Math.round(Math.random()*1000)},
  466. {name: '舟山市',value: Math.round(Math.random()*1000)},
  467. {name: '台州市',value: Math.round(Math.random()*1000)},
  468. {name: '金华市',value: Math.round(Math.random()*1000)},
  469. {name: '衢州市',value: Math.round(Math.random()*1000)},
  470. {name: '绍兴市',value: Math.round(Math.random()*1000)},
  471. {name: '嘉兴市',value: Math.round(Math.random()*1000)},
  472. {name: '湖州市',value: Math.round(Math.random()*1000)},
  473. {name: '盐城市',value: Math.round(Math.random()*1000)},
  474. {name: '徐州市',value: Math.round(Math.random()*1000)},
  475. {name: '南通市',value: Math.round(Math.random()*1000)},
  476. {name: '淮安市',value: Math.round(Math.random()*1000)},
  477. {name: '苏州市',value: Math.round(Math.random()*1000)},
  478. {name: '宿迁市',value: Math.round(Math.random()*1000)},
  479. {name: '连云港市',value: Math.round(Math.random()*1000)},
  480. {name: '扬州市',value: Math.round(Math.random()*1000)},
  481. {name: '南京市',value: Math.round(Math.random()*1000)},
  482. {name: '泰州市',value: Math.round(Math.random()*1000)},
  483. {name: '无锡市',value: Math.round(Math.random()*1000)},
  484. {name: '常州市',value: Math.round(Math.random()*1000)},
  485. {name: '镇江市',value: Math.round(Math.random()*1000)},
  486. {name: '吴忠市',value: Math.round(Math.random()*1000)},
  487. {name: '中卫市',value: Math.round(Math.random()*1000)},
  488. {name: '固原市',value: Math.round(Math.random()*1000)},
  489. {name: '银川市',value: Math.round(Math.random()*1000)},
  490. {name: '石嘴山市',value: Math.round(Math.random()*1000)},
  491. {name: '儋州市',value: Math.round(Math.random()*1000)},
  492. {name: '文昌市',value: Math.round(Math.random()*1000)},
  493. {name: '乐东黎族自治县',value: Math.round(Math.random()*1000)},
  494. {name: '三亚市',value: Math.round(Math.random()*1000)},
  495. {name: '琼中黎族苗族自治县',value: Math.round(Math.random()*1000)},
  496. {name: '东方市',value: Math.round(Math.random()*1000)},
  497. {name: '海口市',value: Math.round(Math.random()*1000)},
  498. {name: '万宁市',value: Math.round(Math.random()*1000)},
  499. {name: '澄迈县',value: Math.round(Math.random()*1000)},
  500. {name: '白沙黎族自治县',value: Math.round(Math.random()*1000)},
  501. {name: '琼海市',value: Math.round(Math.random()*1000)},
  502. {name: '昌江黎族自治县',value: Math.round(Math.random()*1000)},
  503. {name: '临高县',value: Math.round(Math.random()*1000)},
  504. {name: '陵水黎族自治县',value: Math.round(Math.random()*1000)},
  505. {name: '屯昌县',value: Math.round(Math.random()*1000)},
  506. {name: '定安县',value: Math.round(Math.random()*1000)},
  507. {name: '保亭黎族苗族自治县',value: Math.round(Math.random()*1000)},
  508. {name: '五指山市',value: Math.round(Math.random()*1000)}
  509. ]
  510. };
  511. option.legend = {
  512. x:'right',
  513. data:['随机数据']
  514. };
  515. option.dataRange = {
  516. orient: 'horizontal',
  517. x: 'right',
  518. min: 0,
  519. max: 1000,
  520. color:['orange','yellow'],
  521. text:['高','低'], // 文本,默认为数值文本
  522. splitNumber:0
  523. };
  524. myChart.setOption(option, true);
  525. })
  526. </textarea>
  527. </div><!--/.well -->
  528. </div><!--/span-->
  529. <div id="graphic" class="col-md-8">
  530. <div id="main" class="main" style="height: 530px;"></div>
  531. <div>
  532. <button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button>
  533. <span class="text-primary">切换主题</span>
  534. <select id="theme-select"></select>
  535. <span id='wrong-message' style="color:red"></span>
  536. </div>
  537. </div><!--/span-->
  538. </div><!--/row-->
  539. </div><!--/.fluid-container-->
  540. <footer id="footer"></footer>
  541. <!-- Le javascript
  542. ================================================== -->
  543. <!-- Placed at the end of the document so the pages load faster -->
  544. <script src="../asset/js/jquery.min.js"></script>
  545. <script type="text/javascript" src="../asset/js/echartsHome.js"></script>
  546. <script src="../asset/js/bootstrap.min.js"></script>
  547. <script src="../asset/js/echartsExample.js"></script>
  548. </body>
  549. </html>