WIP: duration-based rendering close to working
fix problem when no samples start or end in the current viewport; add y scale control