Laravel-Charts-Live-Demo
Laravel-Charts-Live-Demo copied to clipboard
Laravel + Chart.js demo with chart refreshing every second
Laravel 6 Live-Chart Demo: Refresh Chart Every Second
Added some custom code to our QuickAdminPanel-generated dashboard:
- Used Chart.js library to draw a simple chart of speed measurements every second
- Used API endpoint to get the latest 30 measurements for refresh
(refreshes once per second)
How to use
- Clone the repository with git clone
- Copy .env.example file to .env and edit database credentials there
- Run composer install
- Run php artisan key:generate
- Run php artisan migrate --seed (it has some seeded data for your testing)
- That's it: login to adminpanel by going go
/loginURL and login with credentials [email protected] - password
License
Basically, feel free to use and re-use any way you want.
More from our LaravelDaily Team
- Check out our adminpanel generator QuickAdminPanel
- Read our Blog with Laravel Tutorials
- FREE E-book: 50 Laravel Quick Tips (and counting)
- Subscribe to our YouTube channel Laravel Business
- Enroll in our Laravel Online Courses