Refactored common code for getting timeslice data
Horizon chart
Still a work in progress.