From e4cc4c0170b5c31835dd263acac49917aabcf3b6 Mon Sep 17 00:00:00 2001 From: chenbiao Date: Tue, 19 Sep 2017 19:00:34 +0800 Subject: [PATCH] update index --- js/pagejs/index.js | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 84 insertions(+), 11 deletions(-) diff --git a/js/pagejs/index.js b/js/pagejs/index.js index 79a19c9..cc03682 100644 --- a/js/pagejs/index.js +++ b/js/pagejs/index.js @@ -308,19 +308,25 @@ tooltip : { trigger: 'item' }, - visualMap: { - min: 0, - max: 2500, - left: 'left', - top: 'bottom', - text:['高','低'], // 文本,默认为数值文本 - calculable : true + show: false, + min: 1, + max: 10000, + itemWidth: 0,//图形的宽度,即长条的宽度 + itemHeight: 90,//图形的高度,即长条的高度 + left: 5, + bottom: 0, + //text: ['High', 'Low'], + realtime: false,//拖拽时,是否实时更新 + calculable: false,//是否显示拖拽用的手柄 + inRange: { + color: ['rgba(29,71,193,.3)', 'rgba(33,77,203,.7)','rgba(29,71,193,.2)','rgba(33,77,203,.6)'] + } }, series : [ { - name: 'iphone3', + name: '停车场数', type: 'map', mapType: '邯郸', roam: false, @@ -332,16 +338,54 @@ show: true } }, + itemStyle: { + normal: { + borderWidth: 1, + borderColor: 'rgba(147,191,245,.3)', + + label: { + show: false, + textStyle: { + color: "#fff" + } + } + }, + emphasis:{ + areaColor: 'rgba(255,204,0,0.4)', + label: { + show: false, + textStyle: { + color: "#fff" + } + } + } + }, 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()*0)}, + {name: '武安市',value: Math.round(Math.random()*0)}, + {name: '邯郸县',value: Math.round(Math.random()*0)}, + {name: '临漳县',value: Math.round(Math.random()*0)}, + {name: '成安县',value: Math.round(Math.random()*0)}, + {name: '大名县',value: Math.round(Math.random()*0)}, + {name: '涉县',value: Math.round(Math.random()*0)}, + {name: '磁县',value: Math.round(Math.random()*0)}, + {name: '肥乡县',value: Math.round(Math.random()*0)}, + {name: '永年县',value: Math.round(Math.random()*0)}, + {name: '邱县',value: Math.round(Math.random()*0)}, + {name: '广平县',value: Math.round(Math.random()*0)}, + {name: '馆陶县',value: Math.round(Math.random()*0)}, + {name: '魏县',value: Math.round(Math.random()*0)}, + {name: '曲周县',value: Math.round(Math.random()*0)}, + + ] }, { - name: 'iphone4', + name: '停车位数', type: 'map', mapType: '邯郸', label: { @@ -357,10 +401,25 @@ {name: '邯山区',value: Math.round(Math.random()*1000)}, {name: '复兴区',value: Math.round(Math.random()*1000)}, {name: '丛台区',value: Math.round(Math.random()*1000)}, + {name: '鸡泽县',value: Math.round(Math.random()*0)}, + {name: '武安市',value: Math.round(Math.random()*0)}, + {name: '邯郸县',value: Math.round(Math.random()*0)}, + {name: '临漳县',value: Math.round(Math.random()*0)}, + {name: '成安县',value: Math.round(Math.random()*0)}, + {name: '大名县',value: Math.round(Math.random()*0)}, + {name: '涉县',value: Math.round(Math.random()*0)}, + {name: '磁县',value: Math.round(Math.random()*0)}, + {name: '肥乡县',value: Math.round(Math.random()*0)}, + {name: '永年县',value: Math.round(Math.random()*0)}, + {name: '邱县',value: Math.round(Math.random()*0)}, + {name: '广平县',value: Math.round(Math.random()*0)}, + {name: '馆陶县',value: Math.round(Math.random()*0)}, + {name: '魏县',value: Math.round(Math.random()*0)}, + {name: '曲周县',value: Math.round(Math.random()*0)}, ] }, { - name: 'iphone5', + name: '空闲车位数', type: 'map', mapType: '邯郸', label: { @@ -376,7 +435,21 @@ {name: '邯山区',value: Math.round(Math.random()*1000)}, {name: '复兴区',value: Math.round(Math.random()*1000)}, {name: '丛台区',value: Math.round(Math.random()*1000)}, - + {name: '鸡泽县',value: Math.round(Math.random()*0)}, + {name: '武安市',value: Math.round(Math.random()*0)}, + {name: '邯郸县',value: Math.round(Math.random()*0)}, + {name: '临漳县',value: Math.round(Math.random()*0)}, + {name: '成安县',value: Math.round(Math.random()*0)}, + {name: '大名县',value: Math.round(Math.random()*0)}, + {name: '涉县',value: Math.round(Math.random()*0)}, + {name: '磁县',value: Math.round(Math.random()*0)}, + {name: '肥乡县',value: Math.round(Math.random()*0)}, + {name: '永年县',value: Math.round(Math.random()*0)}, + {name: '邱县',value: Math.round(Math.random()*0)}, + {name: '广平县',value: Math.round(Math.random()*0)}, + {name: '馆陶县',value: Math.round(Math.random()*0)}, + {name: '魏县',value: Math.round(Math.random()*0)}, + {name: '曲周县',value: Math.round(Math.random()*0)}, ] } ] -- libgit2 0.21.4