gizak / termui

Golang terminal dashboard
MIT License
13.14k stars 787 forks source link

linechart: reset bottomValue and topValue on each calculation #102

Closed martinlindhe closed 6 years ago

martinlindhe commented 7 years ago

previous behavior remembered over-all bottom and top values, greatly skewing the linechart if it once saw an abnormal number

martinlindhe commented 7 years ago

The issue addressed with this change is when you use a linechart to plot changing values, the bottomValue and topValue are kept even when the chart no longer contains these values. Example of when this is needed is http://github.com/martinlindhe/graping