Am having the same problem, however am using highcharts. Anyone who can help?
How to print consoletvs Charts in barryvdh PDF
Hey, I am trying to print charts in PDF. I am using this code to generate charts.
$chart = Charts::multi('bar', 'morris') ->title("Total/Active") ->dimensions(0, 265) ->template("c3") ->colors(['#984178', '#03B6BC']) ->dataset('Total', [$users, $projects]) ->dataset('Active', [$activeUsers, $activeProjects]) ->labels(['Users', 'Projects']);
But can not understand how to print those in PDF, some ways I tried was showing error because they couldnt run $chart as string.
But in here is not just 1 chart, but 2, so I was thinking it would be a better idea if I print the entire dashboard.blade.php . it contains only the dashboards
Any suggestion?
Please or to participate in this conversation.