question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Customize legend box height

See original GitHub issue

as the code below, the legend box height is binded to the label fontSize, can i customize the legend box height independent of the label fontSize, like the boxWidth ?

` // Draw the box

ctx.strokeRect(cursor.x, cursor.y, this.options.labels.boxWidth, this.options.labels.fontSize); ctx.fillRect(cursor.x, cursor.y, this.options.labels.boxWidth, this.options.labels.fontSize); `

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:15
  • Comments:38 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
Ryan-Hainescommented, May 19, 2017

Another user here that would really appreciate this feature!

3reactions
tarungarg546commented, May 9, 2018

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to adjust the size of a Matplotlib legend box?
To place a legend on the figure and to adjust the size of legend box, use borderpad=2 in legend() method. To display the...
Read more >
How to specify the legend box size in ggplot/ggplot2
To specify the legend box size you could use + theme(legend.key.size = unit(2, "cm")) . library(tidyverse) tb <- tibble(a = 1:10, b =...
Read more >
How to Make a Legend Box Bigger in Excel
1. Click the legend box. · 2. Click an individual data label in the legend. · 3. Click "Home" in Excel's ribbon. ·...
Read more >
Change Legend Size in Base R Plot - GeeksforGeeks
To change the legend size of the plot, the user needs to use the cex argument of the legend function and specify its...
Read more >
How can I enlarge the legend box-size? - MATLAB Answers
My problem is that as soon as I change the font size to 15 the box around the legends doesn't expand automatically and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found