Funnel
Use it for a sequence people drop out of: conversations started, answered, rated and rated helpful. Bar widths are a share of the first step, and the text between the steps says how many carried on, which is the number that tells you where to look.
How to use it
Paste the toolkit from Get the code into your page first, then call the chart like this.
const chart = funnel({
steps: [
{ label: 'Conversations started', value: 1900 },
{ label: 'Assistant gave an answer', value: 1786 },
{ label: 'Member rated the answer', value: 768 },
{ label: 'Rated helpful', value: 622 }
],
between: true,
label: 'From first question to a helpful answer'
});
document.querySelector('#host').append(chart);Options
What you can pass to this chart.
steps
[{ label, value }] in order. Widths are value / first value.
between
False hides the 'carried on' text between steps.
fmt
Value formatter (default thousands separators).
colour, rowH
Bar colour (later steps fade a little) and row height.
label / empty
aria-label for screen readers; text shown when the first step is empty.
More charts like this
Other charts in the “Parts of a whole” group.
Want charts or dashboards like these in your own product?
Tell me what you are trying to see and I can help work out the right approach, from the data behind it to the screen in front of people.