Skip to content

Commit

Permalink
fix(heatmap): fix bug legend was not fully boxed (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
floaust committed Nov 1, 2023
1 parent 6105d7f commit 5c1ca65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion heatmap_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,14 @@ func (p HeatmapPrinter) boxLegend(buffer *bytes.Buffer, legend string, legendCol
}

func (p HeatmapPrinter) generateSeparatorRow(buffer *bytes.Buffer, legend string, legendColWidth int, top bool) {
p.rgbLegendValue = 11
steps := len(p.RGBRange)
if steps < p.rgbLegendValue {
steps = p.rgbLegendValue
}
steps *= 3
if p.LegendOnlyColoredCells {
steps *= 3
}

var xValue int
if p.EnableRGB {
Expand Down

0 comments on commit 5c1ca65

Please sign in to comment.