fxcosta / laravel-chartjs

Simple package to facilitate and automate the use of charts in Laravel 5.x using Chartjs v2 library
486 stars 112 forks source link

Class chartbar does not exist #12

Closed r4lly99 closed 7 years ago

r4lly99 commented 8 years ago

Hi costa, i have error when try using sample data `

                        </div>
                        <?php
                            $data = array(
                                'Jan' => array(33),
                                'Feb' => array(32),
                                'Mar' => array(12)
                            );
                        ?>

                        {!! app()->chartbar->render("BarChart", $data) !!}`

I'm using laravel 5.1.* , php 7 , and chartjs 1.0.2 , and already using the provider like your suggestion in readme .

fxcosta commented 8 years ago

Hello! It may be a stupid question but you really was registered this provider? You execute the artisan command to publish the configuration file?

php artisan vendor:publish

i'll wait for your feedback! thanks

r4lly99 commented 8 years ago

of course, but never mind , i finally downgrade my laravel to version 5.0.* , and use lavachart , now everything fine. Thank's anyway costa