Use constant for DefaultChartHeight

pull/189/head
Simon Roberts 3 years ago
parent f0631cf2de
commit 4fa05a5e88
No known key found for this signature in database
GPG Key ID: 0F30F99E6B771FD4

@ -183,6 +183,9 @@ var DefaultChartRange = "1Y"
// DefaultMaxChartWidth ...
var DefaultMaxChartWidth int = 175
// DefaultChartHeight ...
var DefaultChartHeight int = 10
// DefaultSortBy ...
var DefaultSortBy = "rank"
@ -274,8 +277,8 @@ func NewCointop(config *Config) (*Cointop, error) {
Entries: make(map[string]*PortfolioEntry),
},
portfolioTableColumns: DefaultPortfolioTableHeaders,
chartHeight: 10,
lastChartHeight: 10,
chartHeight: DefaultChartHeight,
lastChartHeight: DefaultChartHeight,
tableOffsetX: 0,
tableColumnWidths: sync.Map{},
tableColumnAlignLeft: sync.Map{},

Loading…
Cancel
Save