Configure Two-dimensional funnel graphs
masterA two-dimensional funnel graph allows you to visualize sub-segments within each main stage. You provide subLabels for the breakdown and nested arrays in values and colors to match the sub-labels.
In a 2D graph, each segment can have its own unique color or gradient. If a gradient is used, the global gradientDirection option applies to all segments.
data: {
labels: ['Impressions', 'Add To Cart', 'Buy'],
subLabels: ['Direct', 'Social Media', 'Ads'],
colors: [
['#FFB178', '#FF78B1', '#FF3C8E'],
'red',
['blue']
],
values: [
[2000, 4000, 6000],
[3000, 1000, 1700],
[200, 30, 130]
]
}