Commit e4cc4c0170b5c31835dd263acac49917aabcf3b6
1 parent
8763cc94
update index
Showing
1 changed file
with
84 additions
and
11 deletions
js/pagejs/index.js
@@ -308,19 +308,25 @@ | @@ -308,19 +308,25 @@ | ||
308 | tooltip : { | 308 | tooltip : { |
309 | trigger: 'item' | 309 | trigger: 'item' |
310 | }, | 310 | }, |
311 | - | ||
312 | visualMap: { | 311 | visualMap: { |
313 | - min: 0, | ||
314 | - max: 2500, | ||
315 | - left: 'left', | ||
316 | - top: 'bottom', | ||
317 | - text:['高','低'], // 文本,默认为数值文本 | ||
318 | - calculable : true | 312 | + show: false, |
313 | + min: 1, | ||
314 | + max: 10000, | ||
315 | + itemWidth: 0,//图形的宽度,即长条的宽度 | ||
316 | + itemHeight: 90,//图形的高度,即长条的高度 | ||
317 | + left: 5, | ||
318 | + bottom: 0, | ||
319 | + //text: ['High', 'Low'], | ||
320 | + realtime: false,//拖拽时,是否实时更新 | ||
321 | + calculable: false,//是否显示拖拽用的手柄 | ||
322 | + inRange: { | ||
323 | + color: ['rgba(29,71,193,.3)', 'rgba(33,77,203,.7)','rgba(29,71,193,.2)','rgba(33,77,203,.6)'] | ||
324 | + } | ||
319 | }, | 325 | }, |
320 | 326 | ||
321 | series : [ | 327 | series : [ |
322 | { | 328 | { |
323 | - name: 'iphone3', | 329 | + name: '停车场数', |
324 | type: 'map', | 330 | type: 'map', |
325 | mapType: '邯郸', | 331 | mapType: '邯郸', |
326 | roam: false, | 332 | roam: false, |
@@ -332,16 +338,54 @@ | @@ -332,16 +338,54 @@ | ||
332 | show: true | 338 | show: true |
333 | } | 339 | } |
334 | }, | 340 | }, |
341 | + itemStyle: { | ||
342 | + normal: { | ||
343 | + borderWidth: 1, | ||
344 | + borderColor: 'rgba(147,191,245,.3)', | ||
345 | + | ||
346 | + label: { | ||
347 | + show: false, | ||
348 | + textStyle: { | ||
349 | + color: "#fff" | ||
350 | + } | ||
351 | + } | ||
352 | + }, | ||
353 | + emphasis:{ | ||
354 | + areaColor: 'rgba(255,204,0,0.4)', | ||
355 | + label: { | ||
356 | + show: false, | ||
357 | + textStyle: { | ||
358 | + color: "#fff" | ||
359 | + } | ||
360 | + } | ||
361 | + } | ||
362 | + }, | ||
335 | data:[ | 363 | data:[ |
336 | {name: '峰峰矿区',value: Math.round(Math.random()*1000)}, | 364 | {name: '峰峰矿区',value: Math.round(Math.random()*1000)}, |
337 | {name: '邯山区',value: Math.round(Math.random()*1000)}, | 365 | {name: '邯山区',value: Math.round(Math.random()*1000)}, |
338 | {name: '复兴区',value: Math.round(Math.random()*1000)}, | 366 | {name: '复兴区',value: Math.round(Math.random()*1000)}, |
339 | {name: '丛台区',value: Math.round(Math.random()*1000)}, | 367 | {name: '丛台区',value: Math.round(Math.random()*1000)}, |
340 | {name: '鸡泽县',value: Math.round(Math.random()*0)}, | 368 | {name: '鸡泽县',value: Math.round(Math.random()*0)}, |
369 | + {name: '武安市',value: Math.round(Math.random()*0)}, | ||
370 | + {name: '邯郸县',value: Math.round(Math.random()*0)}, | ||
371 | + {name: '临漳县',value: Math.round(Math.random()*0)}, | ||
372 | + {name: '成安县',value: Math.round(Math.random()*0)}, | ||
373 | + {name: '大名县',value: Math.round(Math.random()*0)}, | ||
374 | + {name: '涉县',value: Math.round(Math.random()*0)}, | ||
375 | + {name: '磁县',value: Math.round(Math.random()*0)}, | ||
376 | + {name: '肥乡县',value: Math.round(Math.random()*0)}, | ||
377 | + {name: '永年县',value: Math.round(Math.random()*0)}, | ||
378 | + {name: '邱县',value: Math.round(Math.random()*0)}, | ||
379 | + {name: '广平县',value: Math.round(Math.random()*0)}, | ||
380 | + {name: '馆陶县',value: Math.round(Math.random()*0)}, | ||
381 | + {name: '魏县',value: Math.round(Math.random()*0)}, | ||
382 | + {name: '曲周县',value: Math.round(Math.random()*0)}, | ||
383 | + | ||
384 | + | ||
341 | ] | 385 | ] |
342 | }, | 386 | }, |
343 | { | 387 | { |
344 | - name: 'iphone4', | 388 | + name: '停车位数', |
345 | type: 'map', | 389 | type: 'map', |
346 | mapType: '邯郸', | 390 | mapType: '邯郸', |
347 | label: { | 391 | label: { |
@@ -357,10 +401,25 @@ | @@ -357,10 +401,25 @@ | ||
357 | {name: '邯山区',value: Math.round(Math.random()*1000)}, | 401 | {name: '邯山区',value: Math.round(Math.random()*1000)}, |
358 | {name: '复兴区',value: Math.round(Math.random()*1000)}, | 402 | {name: '复兴区',value: Math.round(Math.random()*1000)}, |
359 | {name: '丛台区',value: Math.round(Math.random()*1000)}, | 403 | {name: '丛台区',value: Math.round(Math.random()*1000)}, |
404 | + {name: '鸡泽县',value: Math.round(Math.random()*0)}, | ||
405 | + {name: '武安市',value: Math.round(Math.random()*0)}, | ||
406 | + {name: '邯郸县',value: Math.round(Math.random()*0)}, | ||
407 | + {name: '临漳县',value: Math.round(Math.random()*0)}, | ||
408 | + {name: '成安县',value: Math.round(Math.random()*0)}, | ||
409 | + {name: '大名县',value: Math.round(Math.random()*0)}, | ||
410 | + {name: '涉县',value: Math.round(Math.random()*0)}, | ||
411 | + {name: '磁县',value: Math.round(Math.random()*0)}, | ||
412 | + {name: '肥乡县',value: Math.round(Math.random()*0)}, | ||
413 | + {name: '永年县',value: Math.round(Math.random()*0)}, | ||
414 | + {name: '邱县',value: Math.round(Math.random()*0)}, | ||
415 | + {name: '广平县',value: Math.round(Math.random()*0)}, | ||
416 | + {name: '馆陶县',value: Math.round(Math.random()*0)}, | ||
417 | + {name: '魏县',value: Math.round(Math.random()*0)}, | ||
418 | + {name: '曲周县',value: Math.round(Math.random()*0)}, | ||
360 | ] | 419 | ] |
361 | }, | 420 | }, |
362 | { | 421 | { |
363 | - name: 'iphone5', | 422 | + name: '空闲车位数', |
364 | type: 'map', | 423 | type: 'map', |
365 | mapType: '邯郸', | 424 | mapType: '邯郸', |
366 | label: { | 425 | label: { |
@@ -376,7 +435,21 @@ | @@ -376,7 +435,21 @@ | ||
376 | {name: '邯山区',value: Math.round(Math.random()*1000)}, | 435 | {name: '邯山区',value: Math.round(Math.random()*1000)}, |
377 | {name: '复兴区',value: Math.round(Math.random()*1000)}, | 436 | {name: '复兴区',value: Math.round(Math.random()*1000)}, |
378 | {name: '丛台区',value: Math.round(Math.random()*1000)}, | 437 | {name: '丛台区',value: Math.round(Math.random()*1000)}, |
379 | - | 438 | + {name: '鸡泽县',value: Math.round(Math.random()*0)}, |
439 | + {name: '武安市',value: Math.round(Math.random()*0)}, | ||
440 | + {name: '邯郸县',value: Math.round(Math.random()*0)}, | ||
441 | + {name: '临漳县',value: Math.round(Math.random()*0)}, | ||
442 | + {name: '成安县',value: Math.round(Math.random()*0)}, | ||
443 | + {name: '大名县',value: Math.round(Math.random()*0)}, | ||
444 | + {name: '涉县',value: Math.round(Math.random()*0)}, | ||
445 | + {name: '磁县',value: Math.round(Math.random()*0)}, | ||
446 | + {name: '肥乡县',value: Math.round(Math.random()*0)}, | ||
447 | + {name: '永年县',value: Math.round(Math.random()*0)}, | ||
448 | + {name: '邱县',value: Math.round(Math.random()*0)}, | ||
449 | + {name: '广平县',value: Math.round(Math.random()*0)}, | ||
450 | + {name: '馆陶县',value: Math.round(Math.random()*0)}, | ||
451 | + {name: '魏县',value: Math.round(Math.random()*0)}, | ||
452 | + {name: '曲周县',value: Math.round(Math.random()*0)}, | ||
380 | ] | 453 | ] |
381 | } | 454 | } |
382 | ] | 455 | ] |