/

Combo Chart

Combine multiple chart types in a single view. Mix lines, bars, and areas to show different data dimensions together.

Usage

example.tsx
import { ComboChart } from "@chartts/react"

<ComboChart
  data={salesData}
  x="month"
  series={[
    { key: "revenue", type: "bar" },
    { key: "growth", type: "line", axis: "right" },
  ]}
  dualAxis
/>

Props

PropTypeDescription
dataT[]Array of data objects
xkeyof TKey for x-axis
seriesSeriesConfig[]Array of series configurations with type
dualAxisbooleanEnable secondary y-axis. Default: false

Features

  • Mix bar, line, and area
  • Dual y-axis support
  • Per-series configuration
  • Shared tooltip
  • Independent scaling
  • Animated entry per type

Other Charts