Dependency
PHP
Version
^8.1
Tayo is a Laravel package for creating interactive charts using Livewire and Alpine. Install it with one command and start rendering charts from Blade immediately.
Dependency
PHP
Version
^8.1
Dependency
Laravel
Version
^10.0 | ^11.0 | ^12.0
Dependency
Livewire
Version
^3.0 | ^4.0
Run the following command from your project root.
composer require sadam/tayo
The package registers itself via Laravel's package auto-discovery.
No configuration publishing is required, and no changes to
app.js are needed.
The x-tayo::chart
component is available in any Blade file immediately after installation.
<x-tayo::chart
type="bar"
:data="$chartData"
title="Revenue"
colors="ocean"
:height="320"
/>
To override the Blade template — for example to change the loading state or wrapper markup — publish the package view.
php artisan vendor:publish --tag=tayo-views
The file is published to
resources/views/vendor/tayo/components/chart.blade.php.
Laravel will use your published copy in preference to the package version.