Combo Chart

Columns and lines in one plot, each series on the main or a second value axis — amounts in columns with a rate or a trend line over them. Drawn as SVG by the component, rendered on the server and themed by the design tokens.

Part of @tectra-ng/charts (npm install @tectra-ng/charts, also included in tectra-ng).

Features14APIThemingAccessibility

Basic

Every series is a column by default; type: 'line' draws it as a line over the columns. Hover a month: its columns stay bright, the line value gets a marker and the tooltip lists every series.

Arrow keys move between values
Orders and average order value. Combo chart, 3 series, 6 values
CategoryOrdersReturnsVisitors, hundreds
Jan32024210
Feb41031260
Mar38022250
Apr47035300
May52028330
Jun61030390

Second axis

axis: 'secondary' puts a series on a second value axis on the other side, with its own format (y2ValueFormat) and title (y2AxisTitle). Its ticks stand on the grid lines of the main axis, so the plot keeps one grid.

Arrow keys move between values
Revenue and margin by quarter. Combo chart, 2 series, 6 values
CategoryRevenueMargin
Q1 20251.2M18.2%
Q2 20251.4M21.5%
Q3 20251.3M19.8%
Q4 20251.6M24.1%
Q1 20261.7M25.3%
Q2 20261.9M27.9%

Area

type: 'area' fills the space under a line with a soft gradient. curve sets the line shape (smooth, straight, step) and markers turns the value points off. Here the sign-ups stand on the second axis, so the small numbers stay readable under the large ones.

Arrow keys move between values
Sessions and sign-ups by day. Combo chart, 2 series, 14 values
CategorySessionsSign-ups
Nov 182042
Nov 294051
Nov 391047
Nov 41,02058
Nov 51,18066
Nov 676031
Nov 769028
Nov 887044
Nov 999053
Nov 101,05057
Nov 111,11061
Nov 121,24072
Nov 1382039
Nov 1474033

Stacked

stacked stacks the column series of each axis into one column per category; lines stay on top as they are. The tooltip lists every part of the stack.

Arrow keys move between values
Tickets by channel and the target. Combo chart, 4 series, 6 values
CategoryEmailChatPhoneTarget
Jan120220150480
Feb132182232500
Mar101191201520
Apr134234154540
May90290190560
Jun110330210580

Axes

Axis titles, yAxisPosition="right" (the second axis moves to the left), a fixed range of the second axis with y2Min / y2Max — the axis then keeps its own ticks.

Arrow keys move between values
Rainfall and temperature by city. Combo chart, 2 series, 7 values
CategoryRainfallTemperature
Lisbon8217.2
Oslo646.3
Vienna5111.4
Warsaw388.5
Madrid3315
Dublin719.8
Athens4719.1

Annotations

axis: 'secondary' puts a line, a band or a point on the second value axis — here the margin target.

Arrow keys move between values
Revenue and margin with targets. Combo chart, 2 series, 4 values
CategoryRevenueMargin
Q112018%
Q215022%
Q314019%
Q419026%

Tooltip

tooltipMode="single" shows only the series under the pointer — the column you hover or the nearest line. tooltipFormatter writes the values; without it every series uses the format of its axis.

Arrow keys move between values
Trials and conversion by week. Combo chart, 2 series, 6 values
CategoryTrialsConversion
W118011.2%
W221012.8%
W319512.1%
W424014.5%
W526015.2%
W625516%

Events

pointClick reports the clicked category with the column under the pointer or the nearest line; seriesToggle reports legend changes. Hiding the only series of the second axis removes that axis.

Arrow keys move between values
Deliveries and on-time rate. Combo chart, 2 series, 6 values
CategoryDeliveriesOn time
Jan1,20091%
Feb1,34093%
Mar1,28089%
Apr1,46095%
May1,53096%
Jun1,61094%

Click a month or a legend item.

Loading and empty

loading keeps the size with a skeleton; empty series (or only null values) show "No data".

No data

Live

Changing series or stacked redraws in place — columns slide to their new size and the line moves with them.

Arrow keys move between values
Units sold and average basket by store. Combo chart, 3 series, 5 values
CategoryCoffeePastryBasket
Downtown202313
Airport371012
Harbor542711
Mall261410
Station43319

Accessibility

Tab to the chart: ←/→ move between categories, ↑/↓ between the series, Home / End jump to the ends, Escape closes the tooltip. Each value is announced in the format of its axis; screen readers also get a summary and a hidden data table.

Arrow keys move between values
Open issues and resolution rate by team. Combo chart, 2 series, 4 values
CategoryOpen issuesResolved
Core3278%
Docs1291%
Design2084%
Infra1488%

Design tokens

dt sets the bar radius, width and gap, the line width, the markers and the palette of one chart.

Arrow keys move between values
Plan, fact and trend. Combo chart, 2 series, 5 values
CategoryPlanFact
Jan3028
Feb3235
Mar3431
Apr3639
May3841

Pass through

pt reaches the parts — bar, line, area, marker, series, grid, axis, legend, legendItem, plot, tooltip and more.

Arrow keys move between values
Orders by day and the forecast. Combo chart, 2 series, 7 values
CategoryOrdersForecast
Mon4240
Tue4442
Wed3943
Thu4645
Fri5150
Sat6560
Sun5861

Unstyled

unstyled removes the tectra styles: no tokens, no rounding, no motion — the geometry, the colours of the series, the tooltip and the keyboard stay, ready for your own CSS.

Arrow keys move between values
Unstyled chart. Combo chart, 2 series, 3 values
CategoryTasksDone
Mon53
Tue86
Wed33