页面显示不全
配置项如下
option = {
title: {
text: 'aaa图'
},
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
/*trigger: 'axis',
axisPointer: {
type: 'shadow',
label: {
backgroundColor: '#6a7985'
}
}*/
},
legend: {
data:['医疗临床','医疗技术','医疗辅助','行政后勤','社康中心', '其他']
},
toolbox: {
feature: {
saveAsImage: {}
}
},
grid: {
left: '3%',
right: '6%',
bottom: '3%',
containLabel: true
},
xAxis : [
{
name:'{a|院内岗位类别}',
nameLocation : 'center',
nameTextStyle : {
/*formatter: [
'{a|{c}}'
].join('\n'),*/
/*height:200,
fontWeight: 400,*/
rich: {
a: {
// color: 'red',
lineHeight: 50
}
}
},
type : 'category',
boundaryGap : true,
data : ['周一','周二','周三','周四','周五','周六','周日']
}
],
yAxis : [
{
name : '人数',
axisLabel: {
formatter: '{value} 人'
},
type : 'value'
}
],
series : [
{
name:'医疗临床',
type:'bar',
stack: '院内岗位类别',
label: {
normal: {
show: true,
position: 'insidetop'
}
},
data:[120, 132, 101, 134, 90, 230, 210]
},
{
name:'医疗技术',
type:'bar',
stack: '院内岗位类别',
label: {
normal: {
show: true,
position: 'insidetop'
}
},
data:[220, 182, 191, 234, 290, 330, 310]
},
{
name:'医疗辅助',
type:'bar',
stack: '院内岗位类别',
label: {
normal: {
show: true,
position: 'insidetop'
}
},
data:[150, 232, 201, 154, 190, 330, 410]
},
{
name:'行政后勤',
type:'bar',
stack: '院内岗位类别',
label: {
normal: {
show: true,
position: 'insidetop'
}
},
data:[320, 332, 301, 334, 390, 330, 320]
},
{
name:'社康中心',
type:'bar',
stack: '院内岗位类别',
label: {
normal: {
show: true,
position: 'insidetop'
}
},
data:[820, 932, 901, 934, 1290, 1330, 1320]
},
{
name:'其他',
type:'bar',
stack: '院内岗位类别',
label: {
normal: {
show: true,
position: 'insidetop'
}
},
areaStyle: {normal: {}},
data:[820, 932, 901, 934, 1290, 1330, 1320]
}
]
};