Documentation
Build charts with a single tag
WireCharts gives you a namespaced Blade component for every chart type. The Basics are free and open source; the rest unlock with a Pro license.
Installation
Require the package via Composer:
bash
composer require wirecharts/wirecharts
Then add the scripts directive before the closing body tag in your layout:
blade
@wirechartsScripts
Quick start
Drop a chart anywhere in a Blade view:
blade
<x-chart::line
:series="[['name' => 'Revenue', 'data' => [120, 180, 150, 260]]]"
:categories="['Jan', 'Feb', 'Mar', 'Apr']"
smooth
/>
Activating Pro
After purchasing, activate your license key to unlock every Pro component:
bash
php artisan wirecharts:activate YOUR-LICENSE-KEY
Common props
Every chart accepts these in addition to its own props.
| Prop | Type | Default | Description |
|---|---|---|---|
| height | int|string | 320 | Chart height in pixels, or any CSS length. |
| theme | string | auto | auto, light or dark. "auto" follows your dark mode. |
| model | string | null | A Livewire property to live-bind the series to. |
| class | string | — | Any classes are merged onto the chart container. |
All components
Basics
Line chart
Plot one or more series over a category axis. Supports smooth (spline) and stepped lines.
Area chart
A filled line chart, ideal for showing volume over time. Stack series for cumulative totals.
Column chart
Vertical bars for comparing values across categories. Stack to compare composition.
Bar chart
Horizontal bars — perfect for ranked lists and long category labels.
Pie chart
Show parts of a whole. Pass flat values with labels, or pre-shaped data objects.
Scatter chart
Plot raw [x, y] points to reveal correlations and clusters.
Pie & funnel
ProGauges
ProDistribution
ProBubble chart
A scatter chart where a third value drives each point's size.
Heatmap
A grid of cells colored by value — ideal for activity and density data.
Candlestick
OHLC financial data as candlesticks over a time axis.
Box plot
Summarize distributions with min, quartiles and max.
Radar chart
Compare multiple variables on a circular axis.
Trees & network
ProTree
Render hierarchical data as an expandable node tree.
Treemap
Nested rectangles sized by value — dense and space-efficient.
Sunburst
A radial treemap for multi-level hierarchies.
Sankey
Flow diagrams where link width encodes magnitude.
Network graph
Force-directed nodes and edges for relationship data.