bar charts!

This commit is contained in:
Will Charczuk 2016-08-05 16:55:55 -07:00
parent 818dd0113b
commit 7bb3fbf810
6 changed files with 539 additions and 19 deletions

View file

@ -33,6 +33,10 @@ func (t Ticks) Less(i, j int) bool {
// GenerateContinuousTicks generates a set of ticks.
func GenerateContinuousTicks(r Renderer, ra Range, isVertical bool, style Style, vf ValueFormatter) []Tick {
if vf == nil {
panic("vf is nil; did you remember to set a default value formatter?")
}
var ticks []Tick
min, max := ra.GetMin(), ra.GetMax()