Skip to content

Commit 0009036

Browse files
committed
top default depends on there being a title or not
1 parent 17e6126 commit 0009036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ColorLegend {
3030
tickSize = 6,
3131
width = 320,
3232
height = 44 + tickSize,
33-
top = -20,
33+
top = title === undefined ? -20 : -3,
3434
right = 0,
3535
bottom,
3636
left,

0 commit comments

Comments
 (0)