plotly / plotly/plotly.js

Sankey Diagram : show node labels on the right side of the node

Aperta
#7,445 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

feature P3
Lingua principale
JavaScript
Stelle
18.3k
Fork
2k
Merge medio
2g 12h
PR unite (30g)
28

Descrizione

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(),
),
)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

L'issue usa go.Sankey in una configurazione Dash; inizia individuando la trace Sankey e il relativo punto di ingresso per il rendering delle etichette dei nodi. Aggiungi una configurazione che supporti il posizionamento a sinistra o a destra, incluse le etichette esterne ai nodi, e verifica entrambi i posizionamenti per il primo e l'ultimo livello.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
data-visualization
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.