Skip to content

Nodes in Sankey chart not connected properly when height is set too short and minLinkWidth is used #19110

Closed

Description

@siropkin

Expected behaviour

The Sankey chart should display all nodes and maintain proper connections between "to" nodes, regardless of the specified height and the use of minLinkWidth parameter.

Actual behaviour

When the height of the Sankey chart is set too short, and the minLinkWidth parameter is used, the connections between "to" nodes become disorganized and messy. Some connections may appear broken or not properly aligned.
image

But if I will removeminLinkWidth parameter or will increase chart height all nodes will work fine:
image

Live demo with steps to reproduce

Please refer to the following Codepen for a live demo showcasing the bug: Bug Demo

Steps to reproduce:

  1. Open the provided Codepen link.
  2. Observe the default Sankey chart.
  3. Modify the height parameter to a shorter value (e.g., decrease the value of chart: { height: ... }).
  4. Set the minLinkWidth parameter to a non-zero value (e.g., modify the data array and add minLinkWidth property to some links).
  5. Notice that the connections between "to" nodes are not properly aligned and may appear broken or disconnected.

Product version

Highcharts JS v11.1.0 (2023-06-05)

Affected browser(s)

Chrome Version 114.0.5735.110 (Official Build) (64-bit)

Activity

  1. bm64 commented on Jun 8, 2023

    @bm64
    Member

    Hello @siropkin and thanks for reporting the issue.

  2. self-assigned this
    on Aug 2, 2023
  3. added a commit that references this issue on Aug 4, 2023
    29ea75f
  4. added a commit that references this issue on Aug 17, 2023
    063e464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions