Change the data type of the x axis of a graph? PHP / Laravel 5.6

Goodnight,

I'm using a quick development tool called QuickAdmin, I need
you can make a graph on the screen for the user who has on the x-axis a die of the type string and on the axis and a die of the type time. The graph will look like the following:

graphic

But Quickadmin only allows date / time data to be placed on the x axis, so I can only put the year or hours there and not the name of the sector as it should. This is the graphic generated by Quickadmin:

insert the description of the image here

I can not understand the logic to make this change in the code, does anyone know what I should change in the controller to pick up a die of the string type on that x-axis of the graph?

(& # 39; date_filter & # 39;)) {}
$ parts = exploits (& # 39; - & # 39 ;, $ request-> input (& # 39; date_filter & # 39;));
$ date_from = Carbon :: createFromFormat (config (& # 39; app.date_format & # 39;), $ parts[0]) -> FORMAT (& # 39; Y-m-d & # 39;);
$ date_to = Carbon :: createFromFormat (config (& # 39; app.date_format & # 39;), $ parts[1]) -> FORMAT (& # 39; Y-m-d & # 39;);
}} else {
$ date_from = new Carbon (& # 39; last Monday & # 39;);
$ date_to = new Carbon (& # 39; this Sunday & # 39;);
}
$ reportTitle = & # 39; Hours trained per sector & # 39 ;;
$ reportLabel = & # 39; AVG & # 39 ;;
$ chartType = & # 39; bar & # 39 ;;

$ results = Training :: where (& # 39; created_at & # 39 ;, & # 39;> = & # 39 ;, $ date_from) -> where (& # 39; created_at & # 39 ;, & # 39;<=', $date_to)->get () -> sortBy (& # 39; created_at & # 39;) -> groupBy (function ($ entry) {
if ($ entry-> created_at instanceof  Carbon  Carbon) {
return  Carbon  Carbon :: parse ($ entry-> created_at) -> format (& # 39; Y & # 39;);
}
test {
return  Carbon  Carbon :: createFromFormat (config (& # 39; app.date_format & # 39;), $ entry-> created_at) -> format (& # 39; Y & # 39;);
}} catch ( Exception $ e) {
(in the event of an error in the operating system).
}})) -> map (function ($ entries, $ group) {
return $ entries-> avg (& # 39; id & # 39;);
});

return view (& # 39; admin.reports & # 39 ;, compact (& # 39; reportTitle & # 39 ;, & # 39; results & # 39 ;, & # 39; chartType & # 39 ;, & # 39; reportLabel & # 39 ;));
}