/Laravel-Charts-Live-Demo

Laravel + Chart.js demo with chart refreshing every second

Primary LanguagePHP

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

Laravel Live-Chart (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 /login URL and login with credentials admin@admin.com - password

License

Basically, feel free to use and re-use any way you want.


More from our LaravelDaily Team