mirror of https://github.com/gizak/termui.git
Merge branch 'linechart-auto-height' of git://github.com/martinlindhe/termui into martinlindhe-linechart-auto-height
This commit is contained in:
commit
4a1616ff65
|
@ -225,6 +225,9 @@ func (lc *LineChart) calcLayout() {
|
||||||
lc.minY = lc.Data[0]
|
lc.minY = lc.Data[0]
|
||||||
lc.maxY = lc.Data[0]
|
lc.maxY = lc.Data[0]
|
||||||
|
|
||||||
|
lc.bottomValue = lc.minY
|
||||||
|
lc.topValue = lc.maxY
|
||||||
|
|
||||||
// valid visible range
|
// valid visible range
|
||||||
vrange := lc.innerArea.Dx()
|
vrange := lc.innerArea.Dx()
|
||||||
if lc.Mode == "braille" {
|
if lc.Mode == "braille" {
|
||||||
|
|
Loading…
Reference in New Issue