Creating interactive Gantt chart

For example in Person C if the middle bar is extended to the right, the right most bar (the darkest one) should scale and move accordingly. And the width of any bar can change.