如何设置漏斗图中的每个系列的小标题。在漏斗图中创建了多个SERIES,想给每个series设置下方标题。请问如何设置呢。比如在样例中第一个漏斗下面显示 “ 标题一” , 第二,第三以此类推。谢谢。
配置项如下
// 指定图表的配置项和数据
var option = {
title: {
text: 'ABC test Funnel(Compare)',
subtext: '',
left: 'left',
top: 'bottom'
},
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b} : {c}"
},
label: {normal: {show: true, formatter: '{b} : {c}' }},
toolbox: {
show: true,
orient: 'horizontal',
top: 'top',
feature: {
dataView: {
readOnly: false
},
restore: {},
saveAsImage: {}
}
},
legend: {
orient: 'horizontal',
left: 'right',
top: 'bottom',
data: ['first', 'second', 'third']
},
calculable: true,
series: [{
name: 'test Funnel 30 Days',
type: 'funnel',
width: '20%',
height: '80%',
left: '5%',
top: '5%',
// funnelAlign: 'left',
// label: {normal: {show: true, formatter: '{a}' }},
center: ['25%', '33%'], // for pie
data: [{
value: 10,
name: 'third'
}, {
value: 50,
name: 'second'
}, {
value: 100,
name: 'first'
}]
}, {
name: 'test Funnel 60 Days',
type: 'funnel',
width: '20%',
height: '80%',
left: '30%',
top: '5%',
// funnelAlign: 'left',
center: ['25%', '66%'], // for pie
data: [{
value: 20,
name: 'third'
},
{
value: 80,
name: 'second'
},
{
value: 150,
name: 'first'
}]
}, {
name: 'test_Funnel_90_DAYS',
type: 'funnel',
width: '20%',
height: '80%',
left: '55%',
top: '5%',
// funnelAlign: 'right',
center: ['25%', '66%'], // for pie
data: [{
value: 200,
name: 'first'
},
{
value: 100,
name: 'second'
},
{
value: 40,
name: 'third'
}]
}]
};