Components/Charts/Analyticssummary
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/analyticssummarycard
Analytics Summary Card component provides a concise overview of key metrics, helping users quickly understand performance insights at a glance.
<AnalyticsLayout/> to control the layout.Add additional information to a card with footer.
The trend indicates the change of the value in percentage.
It has 2 modes:
If there's no change in value, trend won't be displayed.
Summary card can have action button inside to assist with any action needed, since it's a node.
Control is a card is clickable with onClick.
Card supports loading state. <Loader/> will replace the action button when it's actively loading. If the card is clickable it won't be actionable as long as the loader is active.
Control the sparkline width by pixels with chartWidth prop.
Control the appearance of the component using the border prop.
Use this property to emphasize the separation between items.
Control the padding of the card with horizontalPadding prop.
It supports three sizes:
large (default)mediumsmallIf needed, the title can have <Tooltip/> to better explain the context.
When value appears as abbreviated number, <Tooltip/> will appear on hover.
| Name | Type | Default | Description |
|---|---|---|---|
alwaysShowCTA | boolean | false | Always show CTA button. |
border | boolean | false | Adds a border and corner radius. |
chartAnimationDuration | number | 300 | Chart animation duration. |
chartColorHex | string | — | Sets the color of the chart. |
chartData (required) | { label: Date; value: number; }[] | — | Sets the data points of the sparkline chart. Each point has a label date, plotted on the x axis, and a numeric value, plotted on the y axis. |
chartHighlightedStartingIndex | number | — | Indicates the starting index of the highlighted area of the chart. |
chartWidth | number | 69 | Chart width. |
ctaButton | ReactNode | null | CTA button React Node. |
dataHook | string | — | Applied as data-hook HTML attribute that can be used in the tests. |
disabled | boolean | — | |
footer | ReactNode | null | Footer - node. |
getChartTooltipContent | (index: number) => ReactNode | — | Chart tooltip content. |
horizontalPadding | "small" | "medium" | "large" | small | Controls spacing size from left and right sides. |
invertedTrend | boolean | — | Invert color and arrow direction of Trend. |
isLoading | boolean | false | Whether component is loading. |
isTrendVisible | boolean | false | Show/Hide trend. |
onBlur | (event: FocusEvent, triggers: Triggers) => void | — | |
onChartHover | (index: number) => void | noop | Fires when chart is hovered. |
onClick | (event: MouseEvent<HTMLDivElement, MouseEvent>) => void | — | Card would be clickable. |
onCTAClick | (event: MouseEvent<HTMLDivElement, MouseEvent>) => void | — | Fires when CTA button is clicked. |
onFocus | (event: FocusEvent, triggers: Triggers) => void | — | |
ref | RefObject | — | |
title | string | — | Text for the title. |
titleTooltip | string | — | Text for title tooltip. |
trend | number | — | A number to be displayed as the trend, a positive number is green with an arrow facing up and a negative number is red with an arrow facing down. |
value (required) | string | — | Sets the main value of the card, displayed as a large heading. |
valueTooltip | string | — | Text for value tooltip. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
clickCTA | Click on CTA |
CTAExists | Check if CTA exists |
CTAExistsWithoutHover | Check if CTA exists |
isLoading | Checks whether the Analytics are loading |
getValue | returns the value text |
getValueTooltipText | returns the value tooltip text |
getTitle | returns the title text |
getTitleTooltipText | returns the title tooltip text |
trendExists | checks if trend exists |
getTrendvalue | returns the trend value |
exists | Checks whether the component found with the given data hook. |
element | Gets the component root element. |
click | Clicks on the component root element. |
base | Returns UniDriver for the base element. |
Last updated: 22 October 2026