labelOffset and legendSize
See original GitHub issueThe doc says:
A value that determines how far the label is from the symbol in each legend item. Default set to 10px.
But I think there is a problem, here are screenshots:

The code used to generate the legend:
legendSize()
.title(legendTitle.charAt(0).toUpperCase() + legendTitle.slice(1))
.scale(reportScale) // a quantitative scale with two values
.shape('line')
.shapePadding(10)
.shapeWidth(2)
.labelOffset(5)
.labelFormat('.0f')
.labelAlign('start')
.labels(({ i, domain }) => domain[i])
.orient('horizontal')
Also I set the font size to 11px in css.
Am I missing something?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
D3-Legend - Susie Lu
legendSize.labelOffset(number). A value that determines how far the label is from the symbol in each legend item. Default set to 10px. legendSize.
Read more >Using d3-legend - Popular Blocks
labelOffset (10); svg.append("g") .attr("transform", "translate(200, ... sizeLegend = d3.legend.size() .scale(sizeScale) .shape("circle") .
Read more >Legend | Vega-Lite
Default value: 160 . labelOffset, Number | ExprRef. The offset of the legend label. Default value: 4 . labelOverlap ...
Read more >Problems with jqplot legend - charts - Stack Overflow
How to change legend size with matplotlib.pyplot ... JQPlot Y-Axis Label Offset · 0 · jqplot pie chart legend width.
Read more >d3-svg-legend - UNPKG
28, labelOffset(offset: number): LegendColor;. 29, labelDelimiter(delimiter: string): LegendColor; ... 33, export interface LegendSize {.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey there @Lacroute a fix is in on v2.25.1 let me know if you have any problems with it.
Great! It works like a charm