mlsolutions/chart-js-integration

A Simple Dashboard Chart in Laravel Nova using Chart JS. Starting create your own dashboard with Chart JS Integration can save your time and help you maintain consistency across standard elements such as Bar, Stacked, Line, Area, Doughnut and Pie Chart.

Maintainers

Package info

github.com/ml-solutions-ltda/nova-chartjs

Homepage

Language:Vue

pkg:composer/mlsolutions/chart-js-integration

Fund package maintenance!

www.buymeacoffee.com/mlsolutions

Statistics

Installs: 111

Dependents: 0

Suggesters: 0

Stars: 0

v1.0.2 2026-02-27 21:05 UTC

This package is auto-updated.

Last update: 2026-02-27 21:15:00 UTC


README

A Laravel Nova Dashboard with Chart JS | See 📘Documentation Page

Note

👋 Welcome to Nova-ChartJS! We believe that great software is built through collaboration, and we invite you to be a part of it. Whether you're a developer, designer, tester, or just someone passionate about the project, there are many ways to contribute.

Click here to contribute!

Chart JS Integration in Action

Continues Integration Latest Version on Packagist Total Downloads License State Status License

Listed in Awesome ChartJS License

Installation & Documentation

🎓 For better experiences, we moved documentation to : https://coroo.github.io/nova-chartjs/

Security & Input Validation

Recent versions validate chart query inputs more strictly to avoid SQL injection and ambiguous query behavior.

  • model must be an existing Eloquent model class.
  • col_xaxis, join columns, and filter keys must be valid identifiers (for example: orders.created_at).
  • Supported filter operators: =, !=, <>, >, >=, <, <=, LIKE, NOT LIKE, ILIKE, NOT ILIKE, IS NULL, IS NOT NULL, IN, NOT IN, BETWEEN, NOT BETWEEN.
  • sum accepts only numeric values or valid column identifiers.

If your dashboard used raw SQL expressions in sum, col_xaxis, or filter keys/operators, adjust it to the supported format above.

Running Tests

This package includes integration tests for the API endpoints, including NOT IN, BETWEEN, join, uom=day, and cache key isolation.

composer install
composer test

ChangeLog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.