bkjxxxw/WebContent/static/echarts-2.2.7/doc/example/topic/aqi-china/js/option0.js

68 lines
2.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function option0 (name) {
var color = eColorMap[name];
var option = {
title : {
text: '空气质量('+name+'',
subtext: 'data from PM25.in',
sublink: 'http://www.pm25.in'
},
tooltip : {
trigger: 'item'
},
toolbox: {
show : true,
//orient : 'vertical',
x: 'right',
//y: 'center',
feature : {
mark : {show: true},
dataView : {show: true, readOnly: false},
restore : {show: true},
saveAsImage : {show: true}
}
},
dataRange: {
min : data[name + 'Min'],
max : data[name + 'Max'],
calculable : true,
color: ['maroon','purple','red','orange','yellow','lightgreen']
},
series : [
{
type: 'map',
mapType: 'china',
mapLocation: {
//x:'left'
},
hoverable: false,
roam:true,
itemStyle:{
//normal:{label:{show:true}}
},
data : [],
markPoint: {
symbolSize: 5, // 标注大小半宽半径参数当图形为方向或菱形则总宽度为symbolSize * 2
itemStyle: {
normal: {
borderColor: '#87cefa',
borderWidth: 1, // 标注边线线宽单位px默认为1
label: {
show: false
}
},
emphasis: {
borderColor: '#1e90ff',
borderWidth: 5,
label: {
show: false
}
}
},
data : data[name]
},
geoCoord : data.geoCoord
}
]
};
return option;
}