From 9b743db829751d42b0ba3e9060c5acafe60749aa Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Tue, 19 Sep 2017 18:35:05 +0800 Subject: [PATCH] first --- js/pagejs/index.js | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 85 insertions(+), 9 deletions(-) diff --git a/js/pagejs/index.js b/js/pagejs/index.js index 8b86d26..6fcf900 100644 --- a/js/pagejs/index.js +++ b/js/pagejs/index.js @@ -305,13 +305,20 @@ option = { - dataRange:{ - min:0, - max:500, - text:['高','低'], - realtime:true, - calculable:true, - color:['orangered','yellow','green'] + visualMap: { + 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:[ { @@ -321,8 +328,77 @@ mapLocation:{ y:60 }, - itemSytle:{ - emphasis:{label:{show:false}} + label: { + normal: { + show: true + }, + emphasis: { + 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" + } + } + } + }, + markPoint:{ + symbol:'image://./../img/cf_map_icon.png', + silent:true, + symbolSize:[17, 17], + data: [ + + { + name: '', + coord: [103.729882,30.136356], + }, + { + name: '', + coord: [103.789673,30.268198], + }, + { + name: '', + coord: [103.806921,29.789424], + }, + { + name: '', + coord: [104.164518,30.059866], + }, + { + name: '', + coord: [103.383783,30.04186], + }, + { + name: '', + coord: [103.26535,29.914721], + }, + + ], + label:{ + normal:{ + show:false, + }, + emphasis:{ + show:false, + }, + + } }, data:[ {name:'西夏区',value:Math.round(Math.random()*500)}, -- libgit2 0.21.4