ArielMejiaDev / larapex-charts

A Laravel wrapper for apex charts
https://larapex-charts.netlify.app/
MIT License
284 stars 84 forks source link

fix confusing syntax on set grid method #64

Closed ArielMejiaDev closed 1 year ago

ArielMejiaDev commented 1 year ago

it fixes an issue related to a pour readable method.

Charts by default would work without grid.

To add a default grid (gray and some opacity... plays really well with Tailwindui styles)

php

$chart->areaChart()->setGrid();

To customize the grid color and opacity you can pass params to the grid setter:

php

$chart->areaChart()->setGrid('#93c5fd', 0.2);