Skip to content
GetUrUI

Ecommerce charts

4 variantsNewPro
.md

Store analytics drawn in plain SVG and HTML — revenue area, orders by channel, conversion funnel and top products — that draw in, spring between periods and explain every point on hover or arrow keys.

chartecommercerevenueanalyticsdashboardfunnelstacked bartooltipsvg

Revenue area

revenue-area.tsx

Net revenue as a volt area over the previous period, with 7D, 30D and 12M tabs that spring-morph the curve, counting totals and a crosshair tooltip.

$npx shadcn@latest add @geturui-pro/ecommerce-charts-revenue-area
PropTypeDefaultDescription
titlestring"Net revenue"Card heading.
periodsRevenuePeriod[]—{ key, labels, revenue, previous, orders } per tab. Keep the point count equal across periods so the curve can morph.
defaultPeriodstring"30D"Initially selected tab key.
currencystring"USD"ISO currency for formatting.
classNamestring—Extra classes on the card.

Orders by channel

channel-stacked.tsx

Weekly orders stacked by channel on a neutral-to-volt ramp; bars grow in, flip between counts and share with a spring, and break down per week on hover or arrows.

$npx shadcn@latest add @geturui-pro/ecommerce-charts-channel-stacked
PropTypeDefaultDescription
titlestring"Orders by channel"Card heading.
labelsstring[]—One label per bar.
channelsChannel[]—{ id, label, values } ordered most to least important; the first gets volt.
defaultMode"count" | "share""count"Start with absolute orders or percent of total.
classNamestring—Extra classes on the card.

Conversion funnel

conversion-funnel.tsx

Centred funnel bars joined by tapered connectors with drop-off between steps; device tabs spring every width and the selected step reads its step and overall rate.

$npx shadcn@latest add @geturui-pro/ecommerce-charts-conversion-funnel
PropTypeDefaultDescription
titlestring"Store conversion"Card heading.
stepsstring[]—Step names, top of funnel first.
segmentsFunnelSegment[]—{ key, counts } per tab, one count per step.
defaultSegmentstring"All"Initially selected segment.
rangestring"Last 30 days"Time range caption.

Top products

top-products.tsx

Best sellers as ranked bars that grow in with counting values; switching between revenue and units re-ranks the rows with a layout spring.

$npx shadcn@latest add @geturui-pro/ecommerce-charts-top-products
PropTypeDefaultDescription
titlestring"Top products"Card heading.
productsTopProduct[]—{ id, name, category, revenue, units, change }.
defaultMetric"revenue" | "units""revenue"Metric used to rank rows.
currencystring"USD"ISO currency for revenue.
rangestring"Last 30 days"Time range caption.

Install the whole set

Installs every ecommerce charts variant at once. Each section above has its own command for a single variant.

Pro installs use your private registry token. Add the @geturui-pro registry once — setup guide. The command works after you get Pro.

$npx shadcn@latest add @geturui-pro/ecommerce-charts

Accessibility

  • Every chart has role="img" with a written summary, and the plot is a focusable group: left and right arrows move the crosshair while a polite live region reads the values.
  • Period, segment and metric switches are real buttons with aria-pressed; funnel steps are buttons that also move with up and down arrows.
  • Reduced motion skips the draw-in, morphs and count-ups and renders the final state immediately.

Related