柱状图横向显示,名称在柱状图上方,数据在右侧
option = {
grid: {
left: "5%",
right: "2%",
width:"80%",
bottom: "2%",
top: "8%",
containLabel: true
},
yAxis: {
type: 'category',
offset: -10,
position: "left",
inverse: true,
axisLabel: {
interval: 0,
color: ["#333"],
align: "left",
verticalAlign: "bottom",
lineHeight: 60,
fontSize: 16
},
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisLine: { show: false },
axisTick: { show: fa