func (c *SparklineComponent) Set(values []uint) {
	c.Lock()
	defer c.Unlock()
	c.values = ring.New(len(values))
	for _, v := range values {
		c.values.Value = v
		c.values = c.values.Next()
	}
}
Set sets the full set of values to the given slice. This will also reset
the size of the sparkline to this length.
package components
import (
	"container/ring"
	"context"
	"math"
	"sync"
	"github.com/mitchellh/go-glint"
)
type SparklineComponent struct {
	sync.Mutex
	PeakStyle []glint.StyleOption
	values *ring.Ring
}
func Sparkline(values []uint) *SparklineComponent {
	var c SparklineComponent
	c.Set(values)
	return &c
}