Unclear Intended behavior for marker.size=0 for scatter and scattergl
@LiamConnors y travaille déjà.
Depuis le 12/7/2024.
- Langage dominant
- JavaScript
- Étoiles
- 18.3k
- Forks
- 2k
- Merge moyen
- 2 j 12 h
- PR mergées (30 j)
- 28
Description
Setting the marker size to zero could have two reasonable interpretations:
- 0 is a valid input and the markers don't get plotted
- 0 is not a valid input and the markers get plotted in the default size
It seems Option 2 is the current implementation as of v2.28.0 (codepen link). But is that intentional? The documentation says
size
Parent: data[type=scattergl].marker
Type: number or array of numbers greater than or equal to 0
Default: 6
Sets the marker size(in px).
The documentation sounds a bit more like option 1, to me, because 0 is inside the valid range. Also, an array of all 0s does not get plotted, which I assumed should be the same behavior of a single 0.
Should the documentation be clarified or the implementation be changed?
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.