diff --git a/cointop/chart.go b/cointop/chart.go index 87ee20f..a60ff8f 100644 --- a/cointop/chart.go +++ b/cointop/chart.go @@ -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 diff --git a/pkg/chartplot/chartplot.go b/pkg/chartplot/chartplot.go index cc7e8b6..a0b7c78 100644 --- a/pkg/chartplot/chartplot.go +++ b/pkg/chartplot/chartplot.go @@ -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