Commit 9b743db829751d42b0ba3e9060c5acafe60749aa
1 parent
18ff0975
first
Showing
1 changed file
with
85 additions
and
9 deletions
js/pagejs/index.js
| ... | ... | @@ -305,13 +305,20 @@ |
| 305 | 305 | |
| 306 | 306 | option = { |
| 307 | 307 | |
| 308 | - dataRange:{ | |
| 309 | - min:0, | |
| 310 | - max:500, | |
| 311 | - text:['高','低'], | |
| 312 | - realtime:true, | |
| 313 | - calculable:true, | |
| 314 | - color:['orangered','yellow','green'] | |
| 308 | + visualMap: { | |
| 309 | + show: false, | |
| 310 | + min: 1, | |
| 311 | + max: 10000, | |
| 312 | + itemWidth: 0,//图形的宽度,即长条的宽度 | |
| 313 | + itemHeight: 90,//图形的高度,即长条的高度 | |
| 314 | + left: 5, | |
| 315 | + bottom: 0, | |
| 316 | + //text: ['High', 'Low'], | |
| 317 | + realtime: false,//拖拽时,是否实时更新 | |
| 318 | + calculable: false,//是否显示拖拽用的手柄 | |
| 319 | + inRange: { | |
| 320 | + color: ['rgba(29,71,193,.3)', 'rgba(33,77,203,.7)','rgba(29,71,193,.2)','rgba(33,77,203,.6)'] | |
| 321 | + } | |
| 315 | 322 | }, |
| 316 | 323 | series:[ |
| 317 | 324 | { |
| ... | ... | @@ -321,8 +328,77 @@ |
| 321 | 328 | mapLocation:{ |
| 322 | 329 | y:60 |
| 323 | 330 | }, |
| 324 | - itemSytle:{ | |
| 325 | - emphasis:{label:{show:false}} | |
| 331 | + label: { | |
| 332 | + normal: { | |
| 333 | + show: true | |
| 334 | + }, | |
| 335 | + emphasis: { | |
| 336 | + show: true, | |
| 337 | + } | |
| 338 | + }, | |
| 339 | + itemStyle: { | |
| 340 | + normal: { | |
| 341 | + borderWidth: 1, | |
| 342 | + borderColor: 'rgba(147,191,245,.3)', | |
| 343 | + | |
| 344 | + label: { | |
| 345 | + show: false, | |
| 346 | + textStyle: { | |
| 347 | + color: "#fff" | |
| 348 | + } | |
| 349 | + } | |
| 350 | + }, | |
| 351 | + emphasis:{ | |
| 352 | + areaColor: 'rgba(255,204,0,0.4)', | |
| 353 | + label: { | |
| 354 | + show: false, | |
| 355 | + textStyle: { | |
| 356 | + color: "#fff" | |
| 357 | + } | |
| 358 | + } | |
| 359 | + } | |
| 360 | + }, | |
| 361 | + markPoint:{ | |
| 362 | + symbol:'image://./../img/cf_map_icon.png', | |
| 363 | + silent:true, | |
| 364 | + symbolSize:[17, 17], | |
| 365 | + data: [ | |
| 366 | + | |
| 367 | + { | |
| 368 | + name: '', | |
| 369 | + coord: [103.729882,30.136356], | |
| 370 | + }, | |
| 371 | + { | |
| 372 | + name: '', | |
| 373 | + coord: [103.789673,30.268198], | |
| 374 | + }, | |
| 375 | + { | |
| 376 | + name: '', | |
| 377 | + coord: [103.806921,29.789424], | |
| 378 | + }, | |
| 379 | + { | |
| 380 | + name: '', | |
| 381 | + coord: [104.164518,30.059866], | |
| 382 | + }, | |
| 383 | + { | |
| 384 | + name: '', | |
| 385 | + coord: [103.383783,30.04186], | |
| 386 | + }, | |
| 387 | + { | |
| 388 | + name: '', | |
| 389 | + coord: [103.26535,29.914721], | |
| 390 | + }, | |
| 391 | + | |
| 392 | + ], | |
| 393 | + label:{ | |
| 394 | + normal:{ | |
| 395 | + show:false, | |
| 396 | + }, | |
| 397 | + emphasis:{ | |
| 398 | + show:false, | |
| 399 | + }, | |
| 400 | + | |
| 401 | + } | |
| 326 | 402 | }, |
| 327 | 403 | data:[ |
| 328 | 404 | {name:'西夏区',value:Math.round(Math.random()*500)}, | ... | ... |