Hi Miriam,
You can find the js used to achieve this from your example here:
https://github.com/kevinsimper/yearly-calendar-overview/blob/master/main.js (from line 26 down)
You can either implement this in a widget, javascript action, javascript snippet or refer to this post: https://forum.mendix.com/link/questions/97028