OiO.lk Blog javascript Overlapping lines weeks
javascript

Overlapping lines weeks


I have datasets with date time as x-axis.
I did split the datas by weeks like "2024W41", "2024w42"…

I would like to display two lines, one for each week.
Sadly, as its based on date for x-axis, the first week appears left, the second one appears next, to the right of it. Its logical.

How could i make those weeks overlap ? (like they all start from he begining of the x-axis).
Because i want to display as X-axis days of weeks (monday…sunday).

Here is what i have now :

Here is what i would like to do :



You need to sign in to view this answers

Exit mobile version