Fix trend sparkline issue

This commit fixes an issue with recent build sparklines where
the lines would include all data for their respective target,
including data which was generated after the intended point
in time.