Merge branch 'martinlindhe-linechart-auto-height'

This commit is contained in:
Zack Guo 2018-01-02 16:40:37 +08:00
commit 0f42a2ee00

View File

@ -242,6 +242,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" {