Skip to content

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

Open
@HadrienCaradant

Description

@HadrienCaradant

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions