Questions tagged [laravel-charts]

11 questions
2
votes
1 answer

How to install chartjs on laravel 6 via npm

I would like to ask how install and integrate chartjs@2.9.4 with my laravel application. I use cdn links right now but later it wont be an option for me later. Used cdn links:
hunammer98
  • 41
  • 3
2
votes
1 answer

How can I pass a javascript callback to a PHP construct in Laravel-Charts

I am using the laravel-charts package in Laravel 7. I added the datalabels plugin for chartjs into the Chart object like this: $this->options = [ 'responsive' => true, 'maintainAspectRatio' => false, 'legend' => [ 'display' => false ], …
jgravois
  • 2,559
  • 8
  • 44
  • 65
1
vote
0 answers

Generate PDF included Chart in laravel using DOMpdf

I have created a chart successfully but I don't know how to render this chart in pdf. I have tried many things but it's not working. I have created charts using the 'Laravel charts' library and using the 'DOMpdf' library for generating pdf. Also, I…
1
vote
1 answer

How to make stacked bar chart in Chartisan

I have laravel application and i want to display a chart. I have install Laravel Chart and Chartisan/Chartjs. But i dont know how to configure stacked bar. @section('customScript')
0
votes
1 answer

Backpack for Laravel charts, append sum to chart

As I'm trying to implement charts into Backpack for Laravel, I been stuck for a few hours on this problem. The following script gets the number of users created for each day and appends them to an array that is then shown on the charts. for…
flown
  • 21
  • 3