Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Hierarchical layout bug with vis-network v9.1.7 #2023

Closed
kumar-shivam-ranjan opened this issue Oct 12, 2023 · 1 comment
Closed

[BUG] Hierarchical layout bug with vis-network v9.1.7 #2023

kumar-shivam-ranjan opened this issue Oct 12, 2023 · 1 comment

Comments

@kumar-shivam-ranjan
Copy link

I am using vis-network v9.1.7.
This is the options that I am using.

const options = {
    interaction: {
      zoomView: true,
      dragView: true,
    },
    layout: {
      improvedLayout: true,
      hierarchical: {
        enabled: true,
        levelSeparation: 200,
        nodeSpacing: 300,
        treeSpacing: 300,
        blockShifting: true,
        edgeMinimization: true,
        parentCentralization: true,
        direction: 'UD', // UD, DU, LR, RL
        sortMethod: 'hubsize', // hubsize, directed
        shakeTowards: 'leaves', // roots, leaves
      },
    },
  };

When i change direction from UD to LR , the graph breaks with error :
Error in /turbo_modules/[email protected]/peer/umd/vis-network.min.js (33:306522) t is not a function

The same can be reproduced with the following online editor:
https://stackblitz.com/edit/react-wp8ct3?file=package.json,src%2FGraph.js

Any idea when will this bug be resolved?
Thanks

@kumar-shivam-ranjan kumar-shivam-ranjan changed the title [BUG] layout bug with vis-network v9.1.7 [BUG] Hierarchical layout bug with vis-network v9.1.7 Oct 12, 2023
@Thomaash
Copy link
Member

Hi, thanks for reporting it. I think that this should be fixed by #2024. Feel free to reopen if I'm wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants