Merge branch 'linechart-auto-height' of git://github.com/martinlindhe/termui into martinlindhe-linechart-auto-height

This commit is contained in:
Zack Guo 2018-01-02 11:05:20 +08:00
commit 4a1616ff65

View File

@ -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" {