fixed interpolation of points and added resampling to sparkline plugin along with tests