Ernst fix temporal line

Fix line of temporal data

- [x] Include aggregation window from scope in getData
- [x] Format temporal data when time changes