Hi guys!
I have the following chart created in D3.js :
My code to group the labels and the data looks like that:
What I need is to group the labels like that:
I was looking for the proper algorithm but I didn't find anything interesting. Also, I do NOT want to use any libraries like e.g. googleTimeline. Do U have any idea?
Thanks for help!