2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-05 00:00:14 +00:00

Fix comments

This commit is contained in:
Simon Roberts 2021-09-26 19:27:27 +10:00
parent a2e432bb1b
commit 370b9f3a56
No known key found for this signature in database
GPG Key ID: 0F30F99E6B771FD4
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import (
log "github.com/sirupsen/logrus"
)
// Time-series data for a Coin used when building a Portfolio view for chart
// PriceData is the time-series data for a Coin used when building a Portfolio view for chart
type PriceData struct {
coin *Coin
data [][]float64

View File

@ -56,6 +56,7 @@ func (c *ChartPlot) SetData(data []float64) {
c.t.Data = data
}
// GetChartDataSize ...
func (c *ChartPlot) GetChartDataSize(width int) int {
axisYWidth := 30
return (width * 2) - axisYWidth