ArielMejiaDev / larapex-charts

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

Sparklines #59

Closed jamesmills closed 2 years ago

jamesmills commented 2 years ago

This PR ads the functionality to make any chart a "sparkling" chart by adding the setSparklines() to the chart.

Example

return $this->chart
    ->areaChart()
    ->setSparklines()
    ->setColors(['#DCE6EC'])
    ->addData('Boston', [7, 3, 8, 2, 6, 4])
    ->setXAxis(['January', 'February', 'March', 'April', 'May', 'June']);
ArielMejiaDev commented 2 years ago

@jamesmills Thanks it looks really nice and it also adds support for Json and Vue objects.... hopefully soon I would grab some time to add some upgrades, but this contributions is really cool!