diff --git a/linechart.go b/linechart.go index 84e7e28..b7d7ccd 100644 --- a/linechart.go +++ b/linechart.go @@ -225,6 +225,9 @@ func (lc *LineChart) calcLayout() { lc.minY = lc.Data[0] lc.maxY = lc.Data[0] + lc.bottomValue = lc.minY + lc.topValue = lc.maxY + // valid visible range vrange := lc.innerArea.Dx() if lc.Mode == "braille" {