summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorSergey Grebenshchikov <sgreben@gmail.com>2018-03-30 01:16:40 +0200
committerSergey Grebenshchikov <sgreben@gmail.com>2018-03-30 01:17:03 +0200
commitd9d6da484640d23fd88e0323ea3b80d14981d3fa (patch)
treef887590dca695f54b75a7bd0ab18f71f7b9558cd /pkg
parentc7e51836101e57e837c1f8834978942158a78219 (diff)
Fix histogram bin labels1.1.4
Diffstat (limited to 'pkg')
-rw-r--r--pkg/data/histogram.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/data/histogram.go b/pkg/data/histogram.go
index 06e5d95..e16d000 100644
--- a/pkg/data/histogram.go
+++ b/pkg/data/histogram.go
@@ -64,7 +64,7 @@ func NewBins(points []float64) *Bins {
}
func (b *Bins) left(i int) float64 {
- return (b.max - b.min) / float64(b.Number) * float64(i)
+ return b.min + ((b.max - b.min) / float64(b.Number) * float64(i))
}
func (b *Bins) right(i int) float64 {