Skip to main content
WireKit
Copy for LLM

Mixed

Mixed charts render multiple chart types on the same canvas — one dataset as a column, another as a line, a third as an area. ApexCharts handles this via per-series type fields; WireKit exposes the pattern via <x-wirekit::chart-mixed>.

Basic Example — Revenue (column) + Growth (line)

Quarterly revenue (column) with growth-rate overlay (line)

yaxis as an array creates multiple y-axes; opposite: true on the second entry pins it to the right side. Each series binds to the matching y-axis by index.

Line + Area + Column

Sales pipeline: leads (column) + qualified (area) + won (line)

Real-world recipe — Eloquent + multi-axis

@php
    $months = collect(range(0, 11))
        ->map(fn ($i) => now()->subMonths(11 - $i)->format('M'));
    $revenue = \App\Models\Order::monthlyTotals(12);
    $growth = $revenue->map(fn ($v, $i) => $i === 0 ? 0 : round(($v - $revenue[$i - 1]) / $revenue[$i - 1] * 100, 1));
@endphp

<x-wirekit::chart-mixed
    :labels="$months->all()"
    :datasets="[
        ['type' => 'column', 'label' => 'Revenue (€)', 'data' => $revenue->all()],
        ['type' => 'line',   'label' => 'Growth (%)',  'data' => $growth->all()],
    ]"
    :options="['yaxis' => [['title' => ['text' => 'Revenue']], ['opposite' => true, 'title' => ['text' => 'Growth %']]]]"
    height="320px"
/>

License note

ApexCharts is non-MIT — see the License section on the Chart overview page and apexcharts.com/license for the full terms.

See Also

Design Tokens

See ApexCharts adapter — Design Tokens for the color, typography, and grid tokens shared across every ApexCharts demo.

Was this page helpful?

Thank you for your feedback!

Voting requires cookies or local storage. What we store