Kevin Hill

Results 56 comments of Kevin Hill

I don't have time to work on this, but after a quick glance through the code, I think it might be as easy as [changing this line](https://github.com/kevinkhill/FontAwesomePHP/blob/3d04760bd7d71a69fc0dc0c3f509ba3ded6f5c4d/src/FontAwesome.php#L391) to ` $this->style...

did you mean? ``` $datatable = Lava::DataTable(); $datatable->addStringColumn('Label'); // this $datatable->addNumberColumn('Total'); // and this foreach($records as $key => $item){ $datatable->addRow([$key, $item]); } ```

actually.... I hacked together your example and it seems that maybe the serialization of the options is losing the `0` index... In: ```php [ 'title' => $title, 'height' => 500,...

I think you need to have the ```X``` axis as a date/datetime column and use the second for the data. I was able to create a trendline loosely based on...

Upon first glance, move the `addRow` call to inside of your `foreach` so that you add more than one row. or use `addRows()`

You must have found an oversight by me! If you could make a quick PR out of the fix I will merge it.

I've answered this a few times around some of the closed issues if you want to look. Basically, don't create your own instances of `Lavacharts` use the one, singleton instance...

did you register the package's service provider? or did it autoload properly?

Are you using Laravel or just composer?