Chart Js change axes type

Posted 1 month ago by kshitizmittal

I need to change the y-axis as time in format of hh:mm:ss Below is the controller code in which $avg_efficiency_data->values() is in time format.

$efficiencyChart = new SampleChart;
        $efficiencyChart->dataset('Efficiency Avg', 'line', $avg_efficiency_data->values())->options(['backgroundColor' => '#A569BD', 'fill' => false, 'borderColor' => '#A569BD']);

Package used is :-

Please help.

Please sign in or create an account to participate in this conversation.