plotly / plotly/plotly.js

add selectable shapes or absolute marker sizes

Ouverte
#3,682 4 commentaires 2 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

feature P3
Langage dominant
JavaScript
Étoiles
18.3k
Forks
2k
Merge moyen
2 j 12 h
PR mergées (30 j)
28

Description

At first I started with shapes since their size can be explicitly defined in the same domain as the data (i.e. not an arbitrary number that doesn't correspond with the data as with marker size attribute). However, the problem that arises is that shapes do not express any visual feedback when selected (in selectData) as markers do.

So, unfortunately, I've run into a limitation with each method (shapes don't provide feedback when selected nor are they selectable [however you could put a transparent marker in the center which I did for awhile] and marker sizes/shapes cannot be defined in the same domain as the data). Alternatively, I think it might be useful to explicitly define the size and shape of a marker in the same "domain" as the data so that if you were to zoom in or out, the dimensions of the marker do not scale but instead maintain the specified dimensions because its size and shape is important relative to the data. Something like #2193 except for markers and no need for the movable functionality.

Additionally, this would provide some more freedom in customizing the marker i.e. the marker could be defined by an aggregate of shape objects (which is different than #330). That is, if it is important that a data point be represented by a red square behind a blue circle each of a specific size - it could be done.

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.

Piste de recherche

Commencez par suivre selectData ainsi que le comportement existant de sélection des marqueurs et des shapes dans plotly.js. Comparez les alternatives demandées : shapes sélectionnables, tailles de marqueur issues du domaine des données et personnalisation des marqueurs composites. « Terminé » doit être défini comme un comportement pris en charge précis, avec un retour visuel de la sélection et des dimensions qui restent pertinentes pendant le zoom.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
data-visualization
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

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