2012-2017网络游戏产业细分占比
配置项如下
app.title = '堆叠柱状图';
option = {
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
legend: {
data: ['PC客户端', 'PC浏览器', '移动游戏']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [{
type: 'category',
data: ['2012', '2013', '2014', '2015', '2016', '2017']
}],
yAxis: [{
type: 'value'
}],
series: [{
name: 'PC客户端',
type: 'bar',
stack: '游戏',
barWidth: 65,
data: [72.3, 65.7, 56.3, 45.8, 33.9, 29.5],
label: {
normal: {
show: true,
position: "inside",
fontSize: 15
}
}
},
{
name: 'PC浏览器',
type: 'bar',
stack: '游戏',
barWidth: 65,
data: [14.6, 17.7, 18.7, 15.1, 8.9, 6.6],
label: {
normal: {
show: true,
position: "inside",
fontSize: 15
}
}
},
{
name: '移动游戏',
type: 'bar',
stack: '游戏',
barWidth: 65,
data: [13.1, 16.6, 25, 39.1, 57.2, 62.1],
label: {
normal: {
show: true,
position: "inside",
fontSize: 15
}
}
}
]
};