
Checkout conversion
3.4%
55% since the switchAbandoned carts
23%
Average order
$84
A muted line runs flat until a dashed marker, then the accent line climbs while the rate counts up and the latest week gets its own dot.
The import and the props worth knowing about, in one place.
import { Stats21 } from "@/components/beste/piece/stats21";
<Stats21
label="Checkout conversion"
before={2.2}
after={3.4}
suffix="%"
decimals={1}
delta="55% since the switch"
points={[
2.1,
2.3,
2.2,
2.1,
2.3,
2.2,
2.6,
2.8,
3,
3.1,
3.3,
3.4
]}
switchIndex={5}
markerLabel="Moved to Acme"
axisStart="12 weeks ago"
axisEnd="This week"
stats={[
{
"label": "Abandoned carts",
"value": "23%"
},
{
"label": "Average order",
"value": "$84"
}
]}
framed={true}
stepMs={900}
/>