From 6a92b4408c39d71742426a596fe034c15c9a61f8 Mon Sep 17 00:00:00 2001 From: gizak Date: Fri, 10 Apr 2015 10:40:57 -0400 Subject: [PATCH] Fix https://github.com/gizak/termui/issues/9 --- chart.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chart.go b/chart.go index d2cd635..d6fb8bc 100644 --- a/chart.go +++ b/chart.go @@ -4,7 +4,10 @@ package termui -import "fmt" +import ( + "fmt" + "math" +) // only 16 possible combinations, why bother var braillePatterns = map[[2]int]rune{ @@ -77,6 +80,8 @@ func NewLineChart() *LineChart { lc.DotStyle = '•' lc.axisXLebelGap = 2 lc.axisYLebelGap = 1 + lc.bottomValue = math.Inf(1) + lc.topValue = math.Inf(-1) return lc }