dev
parent
fab9737ee9
commit
11454e5f45
@ -0,0 +1,62 @@
|
||||
// 地区分布
|
||||
export default function pictographicOption(dRegion=[],dValue=[]){
|
||||
return {
|
||||
tooltip: {
|
||||
},
|
||||
xAxis: {
|
||||
show:false,
|
||||
type:'value'
|
||||
},
|
||||
yAxis:
|
||||
{
|
||||
data: dRegion,
|
||||
inverse: true,
|
||||
axisTick: { show: false },
|
||||
axisLine: { show: false },
|
||||
axisLabel: {
|
||||
margin: 10,
|
||||
color: '#333333',
|
||||
fontSize: 12
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
// top: 'center',
|
||||
bottom:20,
|
||||
height:186,
|
||||
width:48,
|
||||
left: 60,
|
||||
},
|
||||
series: [
|
||||
{
|
||||
itemStyle:{
|
||||
normal:{
|
||||
color:'#0084FF',
|
||||
barBorderRadius:12
|
||||
},
|
||||
},
|
||||
// current data
|
||||
type: 'bar',
|
||||
barWidth:10,
|
||||
data:dValue,
|
||||
label: {
|
||||
show: true,
|
||||
formatter: function (params) {
|
||||
return (params.value).toFixed(1) + ' %';
|
||||
},
|
||||
// position: 'right',
|
||||
// offset: [20, 0],
|
||||
color: '#333333',
|
||||
fontSize: 12,
|
||||
position:[60,-4]
|
||||
},
|
||||
showBackground: true,
|
||||
backgroundStyle: {
|
||||
color: 'rgba(180, 180, 180, 0.2)'
|
||||
},
|
||||
markLine: {
|
||||
symbol: 'none',
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in new issue