Thank you for this great package. I tried to hide the legend or call a callback function to format the label of yaxis. I did follow the instruction in Chartjs document, something like that:
(new BarChart())
->title('Expense')
->animations([
'enabled' => true,
'easing' => 'easeinout',
])
->series(array([
//'barPercentage' => 1,
'label' => 'Average Sales 2',
'backgroundColor' => '#F87900',
'data' => $chartData,
]))
->options([
'xaxis' => [
'categories' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
],
'legend' => [
'display' => false
]
])
->width('2/3'),
But it didn't hide the legend. So does this great package follow the chartjs document or it has a different way to pass value to option attribute?
bug