Funnel Alignment
Center (default)
Code
ts
export const center: ChartConfiguration<'funnel'> = {
type: 'funnel',
data: {
labels: ['Step 1', 'Step 2', 'Step 3', 'Step 4'],
datasets: [
{
data: [0.7, 0.66, 0.61, 0.01],
},
],
},
plugins: [ChartDataLabels],
};
Left
Code
ts
export const left: ChartConfiguration<'funnel'> = {
type: 'funnel',
data: {
labels: ['Step 1', 'Step 2', 'Step 3', 'Step 4'],
datasets: [
{
data: [0.7, 0.66, 0.61, 0.01],
align: 'left',
},
],
},
plugins: [ChartDataLabels],
};
Right
Code
ts
export const right: ChartConfiguration<'funnel'> = {
type: 'funnel',
data: {
labels: ['Step 1', 'Step 2', 'Step 3', 'Step 4'],
datasets: [
{
data: [0.7, 0.66, 0.61, 0.01],
align: 'right',
},
],
},
plugins: [ChartDataLabels],
};