you can now specify tick values and labels manually.

This commit is contained in:
Will Charczuk 2016-07-08 09:17:28 -07:00
parent 65c3f62ac5
commit afc220e25c
3 changed files with 55 additions and 49 deletions

View file

@ -7,11 +7,18 @@ import (
"github.com/blendlabs/go-util"
)
// Tick represents a label on an axis.
type Tick struct {
RangeValue float64
Label string
}
// Range represents a continuous range,
type Range struct {
Min float64
Max float64
Domain int
Ticks []Tick
Formatter Formatter
}