you can now specify tick values and labels manually.
This commit is contained in:
parent
65c3f62ac5
commit
afc220e25c
3 changed files with 55 additions and 49 deletions
7
range.go
7
range.go
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue