Improved trend response for different time resolutions.
Merge pull request #25 from niravthaker/master

Improved trend response for different time resolutions.