Component guideEditable source

Signup conversion

Compare acquisition cohorts, find stage losses, and inspect conversion denominators.

On this page4 sectionsBack to top

Choose a sample acquisition cohort to update all four stages together. The visible summary identifies the largest loss by number of people, while the table exposes each step conversion rate.

Live preview
Loading preview...

#Installation

Complete the base setup, then install this recipe with the CLI tab below. It works in React 19 projects using Next.js or Vite and Tailwind CSS v4.

npx shadcn@latest add https://neobrutal-ui.andongmin.com/r/chart-signup-conversion.json

#Usage

import ChartSignupConversion from "@/components/ui/chart-signup-conversion";

export default function Example() {
  return <ChartSignupConversion />;
}

#API reference

The default export is an editable recipe with no required props. It includes illustrative data, not a live data connection. Edit the following constants in the installed source to adapt it.

Source settingMeaning
cohortsFour ordered counts per acquisition cohort. Counts represent people, not repeated events.
stagesLabels in the same order as the counts.
cohortInitially selected acquisition cohort.
configThe series label and shared theme color.

Use one consistently defined cohort for all stages. Visit-to-paid conversion uses the first stage as its denominator; step conversion uses the preceding stage. Keep denominators positive in this sample and define an explicit no-data state before connecting an empty dataset.

#Accessibility

The selector has a visible label and supports keyboard input. The chart enables Recharts keyboard navigation. Calculated summaries remain visible without hovering, and the expandable data table provides the exact values behind the plot. Preserve these alternatives when adapting the recipe. The plot does not animate and inherits the consuming project's light and dark theme tokens.