Combo Chart Card
Volume and rate on one canvas - rounded bars on the left axis, a line on its own right axis, each with its own formatting. Hovering a category darkens its bar, dims the rest, pops a pulsing dot on the line, and swaps the headline; the tiles below hold the bar total and the line average.
Sessions · Conversion 3.7%
Provided data+9.4%
Sessions · total83,200Conversion · average3.7%
| Category | Value | Previous value |
|---|---|---|
| Jan | 4,200 | Not supplied |
| Feb | 4,800 | Not supplied |
| Mar | 5,600 | Not supplied |
| Apr | 5,200 | Not supplied |
| May | 6,400 | Not supplied |
| Jun | 7,100 | Not supplied |
| Jul | 6,800 | Not supplied |
| Aug | 7,600 | Not supplied |
| Sep | 8,400 | Not supplied |
| Oct | 8,100 | Not supplied |
| Nov | 9,200 | Not supplied |
| Dec | 9,800 | Not supplied |
Installation
Download the React source package, install its dependencies, and import the component with its shared styles.
'use client';
import {SourceChartPreview} from '@helios-ui/react';
import '@helios-ui/react/styles.css';
export default function Example(){return <SourceChartPreview id="combo-chart-card"/>;}Data
The bar and line series use the same rows. Each names its numeric field, label, optional color and formatter. Their independent axes keep different units readable together, such as a count and percentage or currency and ROAS. Supply ranges to populate the period dropdown, or use the illustrative defaults.
Revenue · Conversion 3.7%
Provided data+9.4%
| Category | Value | Previous value |
|---|---|---|
| Jan | 4,200 | Not supplied |
| Feb | 4,800 | Not supplied |
| Mar | 5,600 | Not supplied |
| Apr | 5,200 | Not supplied |
| May | 6,400 | Not supplied |
| Jun | 7,100 | Not supplied |
| Jul | 6,800 | Not supplied |
| Aug | 7,600 | Not supplied |
| Sep | 8,400 | Not supplied |
| Oct | 8,100 | Not supplied |
| Nov | 9,200 | Not supplied |
| Dec | 9,800 | Not supplied |
usage
'use client';
import {SourceChartPreview} from '@helios-ui/react';
import '@helios-ui/react/styles.css';
export default function Example(){return <SourceChartPreview id="combo-chart-card" data={[{name:'Jan',value:120,previous:100},{name:'Feb',value:180,previous:150},{name:'Mar',value:160,previous:140}]}/>;}