// 指定图表的配置项和数据 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' }] }] };