Year View manipulate color based on nbr planned events

Hi
Is it possible to adjust the color code in the year view?
Example when a user has 2 tasks (events) on a particular day then he is fully booked. (color blue) When a user has 1 task that day the color code dill be light blue.

can i extract the number of events/by day or can i extract the total amont of minutes booked that day?

Thanks you !!

You may try to use templates.
eg.

<style>
.dhx_month_head.dhx_year_event.red{
	background:red !important;
}
</style>
<script>
scheduler.templates.event_class=function(start, end, event){
	var css = "";
	var evs = scheduler.getEvents(start,start); 
	if (evs.length>=1){
		css += " red";
	}
	return css; // default return
};