ValyroUI Русская версия

Funnel Chart

Conversion funnels. Pro · Charts and analytics › Shares and composition

Conversion funnel: bars narrowing per stage, with step and overall conversion.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add funnel-chart
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { FunnelChart } from 'valyro-ui-pro';

Props

PropTypeDefault
data *FunnelStage[]Stages top to bottom; bar widths are relative to the largest value, conversion to the first and previous stage.
colorstring'var(--ui-chart-1)'Any CSS color. Default --ui-chart-1.
align'start' | 'center''start'start: bars line up next to the stage labels. center: a symmetric funnel shape. Default start.
valueFormatterValueFormatterFormats stage values, drop-offs between stages, the summary and the data table.
localestringBCP 47 locale for the default number formatting. Default: the ThemeProvider locale, then the browser's.
labelsPartial<FunnelChartLabels>Overrides for the built-in strings.
ariaLabel *stringAccessible name of the chart (also the caption of its sr-only data table).

Related components

Previous: Treemap · Next: Sankey Chart · All Charts and analytics