plotly/plotly.js

[FEATURE]: Setting `itemheight` (analogous to `itemwidth`) to increase height of fill in legend

Offen

#7.924 geöffnet am 28.07.2026

 (3 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (1.846 Forks)batch import
P3enhancementfeaturegood first issuegood for agentsize: 3

Repository-Metriken

Stars
 (15.964 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 35T 19h) (36 gemergte PRs in 30 T)

Beschreibung

Description

Please consider adding layout.legend.itemheight setting (similar to current layout.legend.itemwidth)

For plots with a fillpattern applied, it would be great if we could increased the height of the corresponding legend item so that more of the fill pattern was visible.

Why should this feature be added?

Currently, the fillpattern is only 6 pixels high (I think), but if we could make it higher then more of the pattern would be visible.

Mocks/Designs

The current legend item height:

Setting the svg path to v12 shows more of the pattern fill and makes the regions more easily identifiable (my vertical alignment is off, but hopefully the concept is clear enough).

Best regards

Contributor Guide