Hours coloring unit view

Hi all.
I want color hours in unit view based on my DB value for each unit.
Is possible ?

Thank You.

Will not work for unit view, but possible in timiline ( which is basically the same as unit view, just rotated on 90deg )

Thank you.
Can you explain the best approach for to do this ?


Timeline allows to define

scheduler.templates.timeline_cell_class = function(ev,x,y){ return "css_class"; }

so you can define logic which will assign css class, based on cell coordinates ( x, y )