plotly / plotly/plotly.js

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

Ouverte
#7,924 3 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@MannXo y travaille déjà.

Depuis le 28/7/2026.

enhancement feature good first issue good for agent P3 size: 3
Langage dominant
JavaScript
Étoiles
18.3k
Forks
2k
Merge moyen
2 j 12 h
PR mergées (30 j)
28

Description

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:
Image

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).
Image

Best regards

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.