Skip to content

Artisan Generator

Generate a new chart class in your app/Charts directory:

Terminal window
php artisan make:chart UserRetentionChart

Specify the default chart type:

Terminal window
php artisan make:chart SalesChart --type=bar

Specify a specific rendering engine:

Terminal window
php artisan make:chart AnalyticsChart --engine=chartjs

Supported types: line, bar, area, pie, donut, radar, scatter, bubble, heatmap, treemap, candlestick, rangeBar, radialBar, polarArea.