Find the five products driving the most revenue. Each row shows units sold and the sales trend for the selected period.
Revenue Leaders · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
snapshotTopProductsSnapshot | null (optional)
Store name, currency, product catalogue and measured sales by period. Omit for the built-in example or pass null when the report is unavailable.
indexnumber (optional)
Offsets the initial animation in a grid.
Data and integration
Preview
Six fictional products with original product imagery. Up to five appear in each period, ranked by revenue.
Inputs
Send products with a stable id, name, optional imageSrc and unitPrice, and sales keyed by Today, Week or Month. Each reported period contains units and revenue, plus optional revenueHistory in chronological order. The snapshot can also supply storeName, one three-letter currency code, and comparisons keyed by period with optional storeRevenue, fractional change and label.
Source options
Join the product catalogue to your sales report by product ID. Use consistent currency, reporting time zone and definitions of revenue across products, trends and store totals. Supply a square product image from your media service or a public path on your host. Refresh the snapshot when data changes.
Actions
Switch between Today, Week and Month to rank products and refresh the figures and trends.
Integration requirements
Units are nonnegative whole numbers. Monetary values use major units and must be finite and nonnegative. The rank uses measured revenue, and the total sums the displayed products. Displayed revenue is rounded to whole currency units. The first valid record for a product ID is used. Missing or failed images use a neutral placeholder. Charts use the last 24 entries at most and require at least two valid, equally spaced samples. Omit unavailable periods or history. An empty product array represents an empty report. Omitted currency defaults to USD.