Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from relvacode/master
Browse files Browse the repository at this point in the history
Correct calculated height of bar chart
  • Loading branch information
wcharczuk authored Jan 10, 2017
2 parents 7163f89 + 8301663 commit 47a8a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bar_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (bc BarChart) getAdjustedCanvasBox(r Renderer, canvasBox Box, yrange Range,
lines := Text.WrapFit(r, bar.Label, barLabelBox.Width(), axisStyle)
linesBox := Text.MeasureLines(r, lines, axisStyle)

xaxisHeight = Math.MaxInt(linesBox.Height()+(2*DefaultXAxisMargin), xaxisHeight)
xaxisHeight = Math.MinInt(linesBox.Height()+(2*DefaultXAxisMargin), xaxisHeight)
}
}

Expand Down

0 comments on commit 47a8a6b

Please sign in to comment.