Plot_ly sunburst restyle event puts sunburst in weird state
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- r
- Domaine
- data-visualization
Piste de recherche
Commencez par l’appel plotlyProxyInvoke("restyle", ...) indiqué dans l’issue et reproduisez la navigation après le restyling d’un sunburst à trois niveaux jusqu’à un leaf id. Suivez l’état du nœud feuille et la gestion des clics ; le travail est terminé lorsqu’un clic sur la vue de la feuille permet de revenir à son parent et de le rerendre correctement.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I have a large sunburst it is laid out with three levels. I have implemented click events to synchronize other tables and charts as a user navigates the sunburst.
I am trying to implement a search box that takes the user directly to a node in the sunburst. I am using plotlyProxy and send the restyle
gotothis<-sbd %>% filter(labels==input$sunburstquery) %>% pull(ids)
sunburstproxy %>% plotlyProxyInvoke("restyle", list(level=gotothis))
In this case gotothis would be the id of the table that the sunburst was created from. In most cases this works in the desired method. If I restyle to one of the levels in the middle it draws the sunburst as if I had just clicked on that node. However, when the level is a leaf. It draws a single circle with that leaf in it no parents.
Which is fine I suppose, however when I try to navigate to the parent by clicking the circle as if it were the center circle, then it doesn't rerender the parent, though the click event is registered. To reiterate this works as expected when I restyle the level to the parent level. There doesn't appear to be anyway to rescue the state of the plotly sunburst after it is restyled to a leaf node.
- Langage dominant
- R
- Étoiles
- 2.7k
- Forks
- 641
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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.
Autres issues de plotly/plotly.R
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
-
Data gets dropped in add_trace and consequently points have the wrong color if NA is present Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
-
save_image Error Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
Toutes les issues de plotly/plotly.R
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
r-lib/pkgdepends#485 · 3 commentaires ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
-
beginners blocker
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
enviPathR OuverteBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
Bioconductor/BiocContributions#207 · 6 commentaires ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
datacarpentry/semester-biology#1255 ·