diff --git a/config.yml b/config.yml index 15981ec..74ac734 100644 --- a/config.yml +++ b/config.yml @@ -12,11 +12,11 @@ line-charts: style: dots/lines scale: log position: - x: 10 - y: 20 + x: 0 + y: 0 size: - x: 100 - y: 50 + x: 3 + y: 2 - title: mongo-count data: - label: posts diff --git a/widgets/timeplot.go b/widgets/timeplot.go index ddeacbc..86f1f77 100644 --- a/widgets/timeplot.go +++ b/widgets/timeplot.go @@ -97,13 +97,10 @@ func (self *TimePlot) Draw(buf *Buffer) { self.plotAxes(buf) } - drawArea := self.Inner - if self.ShowAxes { - drawArea = image.Rect( - self.Inner.Min.X+yAxisLabelsWidth+1, self.Inner.Min.Y, - self.Inner.Max.X, self.Inner.Max.Y-xAxisLabelsHeight-1, - ) - } + drawArea := image.Rect( + self.Inner.Min.X+yAxisLabelsWidth+1, self.Inner.Min.Y, + self.Inner.Max.X, self.Inner.Max.Y-xAxisLabelsHeight-1, + ) self.renderBraille(buf, drawArea) self.dataMutex.Unlock()