Merge pull request #39 from divan/master

Make sparkline to use last N datapoints
This commit is contained in:
Zack Guo 2015-04-26 10:47:55 -04:00
commit ae033ed3b4

View File

@ -106,7 +106,7 @@ func (sl *Sparklines) Buffer() []Point {
data := l.Data
if len(data) > sl.innerWidth {
data = data[:sl.innerWidth]
data = data[len(data)-sl.innerWidth:]
}
if l.Title != "" {