mirror of https://github.com/gizak/termui.git
This commit is contained in:
parent
9292a5f43d
commit
6a92b4408c
7
chart.go
7
chart.go
|
@ -4,7 +4,10 @@
|
|||
|
||||
package termui
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
)
|
||||
|
||||
// only 16 possible combinations, why bother
|
||||
var braillePatterns = map[[2]int]rune{
|
||||
|
@ -77,6 +80,8 @@ func NewLineChart() *LineChart {
|
|||
lc.DotStyle = '•'
|
||||
lc.axisXLebelGap = 2
|
||||
lc.axisYLebelGap = 1
|
||||
lc.bottomValue = math.Inf(1)
|
||||
lc.topValue = math.Inf(-1)
|
||||
return lc
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue