Skip to content

valueSuffix in Sankey diagram tooltip not rendering properly #181

Open

Description

@hcpchris

@hcpchris,

I noticed that in the corrected example, the valueSuffix is working for the point but not for the node.

I got it working using the following code:

            'nodeFormat': '{point.name}: {point.sum}{point.weight} not Working!!!',

{point.sum} return the correct value but without the correct suffix.
{point.weight} return an empty value but with the correct suffix.

Put together it works, but I don't think it's the expected behavior.

Originally posted by @JulienBacquart in #148 (comment)

Activity

  1. hcpchris commented on Jun 11, 2024

    @hcpchris
    CollaboratorAuthor

    This issue is likely related to the serialization of format strings beginning with { and ending with } that was patched in commit 5b7a39e

  2. added this to the v.1.8.2 milestone on Jun 11, 2024
  3. hcpchris commented on Jun 21, 2024

    @hcpchris
    CollaboratorAuthor

    @JulienBacquart: Turns out this issue is unrelated to the commit I mentioned earlier. Basically, the way that Highcharts (JS) works is that it appends the valueSuffix to the property that it interprets as the y value for the chart...which in the Sankey chart's case is the {point.weight} property. Which is why the workaround you found is working for you.

    This seems a bit counterintuitive to me, however, so I've raised this question with the Highcharts (JS) team to see what they think about this. I'm not sure whether they will want to adjust this, but any adjustment to this will require a change on the Highcharts (JS) side. I'll leave this issue open here until I hear back from them and update it accordingly, but I'll remove the milestone I attached to it since it won't be resolved in Highcharts for Python v.1.8.2 after all.

  4. removed this from the v.1.8.2 milestone on Jun 21, 2024
  5. self-assigned this
    on Jun 21, 2024
  6. added
    question
    on Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions