Sankey Diagram : show node labels on the right side of the node
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 18.3k
- Forks
- 2k
- Merge moyen
- 2 j 12 h
- PR mergées (30 j)
- 28
Description
Hi,
I am using go.Sankey and can't find a way to display node labels on the right side of the node. I might have missed something but I came accross the entire documentation.
Situation today:
labels are always on the left side of the node
Wished situation :
labels can be on the right or on the left side of the node, depending on the set up. COuld be usefull to show labels outside of nodes (ie : on the right side of the node for the first layer and on the right side of the node for the last layers).
I am currently using go.Sankey in dash using this code :
sankey_data = go.Sankey(
arrangement="snap",
node=dict(
pad=pad_value,
thickness=20,
label=SankeyChart.get_node_labels_list(),
color=SankeyChart.get_node_color_list(),
x=SankeyChart.get_node_x_list(),
y=SankeyChart.get_node_y_list(),
# align="left",
line=dict(color="black", width=0.5),
),
link=dict(
source=SankeyChart.get_links_source_list(),
target=SankeyChart.get_links_target_list(),
value=SankeyChart.get_links_value_list(),
color=SankeyChart.get_links_color_list(),
),
)
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.
Piste de recherche
L’issue utilise go.Sankey dans une configuration Dash ; commencez par localiser la trace Sankey et son point d’entrée pour le rendu des libellés des nœuds. Ajoutez une configuration prenant en charge le placement à gauche ou à droite, y compris les libellés en dehors des nœuds, et vérifiez les deux placements pour la première et la dernière couche.
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é
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100