question

pc neo avatar image
0 Likes"
pc neo asked Matthew Gillespie commented

cannot read data while hover in sankey chart

sankey_query.fsmsankey.pngI have an issue with sankey chart whereby when I hover within the "left circled" area only 1 data point is shown though there are 4 data within that area. This seems to be due to the big patch drawn covering the other 4 data points.

The data shown that materials flow from StationC to StationQC and StationE (shown in "right circled" area also drawn with a big patch of area). The same information is again to be shown in the "left circled" area however the big patch now obscures the other 4 data points. Why is the big patch being drawn? Anyway to avoid it?

FlexSim 22.2.2
sankey diagram
sankey.png (67.0 KiB)
sankey-query.fsm (76.9 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Andrew O avatar image Andrew O commented ·

Hi @pc neo, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Matthew Gillespie commented

This is a bug, thank you for reporting this issue. It happens when there is a wide range in data. In your example, some lines are supposed to represent a weight of 3915, while others represent a weight of 4. So the thick lines are supposed to be ~1000 times as thick as the thinnest. The bug happens with this very thin case.

To work around the issue, you have two choices. You can wait for the next bug fix release, or you can actually apply the fix for yourself. In version 22.2, you can do the following:

  1. Go to your FlexSim install directory (e.g. C:\Program Files\FlexSim 2022 Update 2)
  2. Within that directory, open program\flexsimweb\sankeyd3.js in a text editor with admin privileges.
  3. Change line 371 of that file.

Old code that has a bug:

var lineWidth = Math.max(1, link.width);

New code:

var lineWidth = Math.max(3, link.width);

Save that file, and then close and reopen the dashboard. It should work for you.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·
@pc neo This bug has been fixed for 22.0.10 which comes out next week.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.