spradeesh
Posts: 12
Joined: Mon Nov 14, 2022 8:59 am

Re: Networkgraph Custom Tooltip

Dear Kamil :

When am completing the requirement, i see the graph is moving to the corner. This is happening when any of the nodes has huge number of childs. Can you please help me on this ?

Please check the URL https://jsfiddle.net/spradeesh/oqkyb7h1/9/
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Networkgraph Custom Tooltip

There is a special plotOptions.networkgraph.layoutAlgorithm property which sets several properties to set the proper animation. In your case, the friction property stands for moving the nodes to the right.

Take a look at the API: https://api.highcharts.com/highcharts/p ... tAlgorithm

Let me know if you will struggle to fix this issue,
Regards!
Kamil Kubik
Highcharts Developer
spradeesh
Posts: 12
Joined: Mon Nov 14, 2022 8:59 am

Re: Networkgraph Custom Tooltip

Thanks for your input kamil. I tried with all the parameters from the layoutAlgorithm, but nothing helps me. can you get me out on this pls ?
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Networkgraph Custom Tooltip

Have you tried many combinations of these properties? Also, note that the algorithm stops after some amount of iteration, which defaults is set to 1000 but in general, the algorithm should find positions sooner.

I have prepared two examples of different behavior which I hope will be suitable for your case, see:
    https://jsfiddle.net/BlackLabel/2r5fbws9/
      https://jsfiddle.net/BlackLabel/1tm3w7u6/

      Both examples meet your needs not to go to the right but as this is an algorithm, it will be much helpful to know how the elements should behave for your needs (in case of the examples or not suitable).

      Looking forward to your response!
      Kamil Kubik
      Highcharts Developer
      spradeesh
      Posts: 12
      Joined: Mon Nov 14, 2022 8:59 am

      Re: Networkgraph Custom Tooltip

      There you are Kamil. Thats the reason am looking for you when am down. thanks alot. You made my day.
      kamil.k
      Posts: 458
      Joined: Thu Oct 06, 2022 12:49 pm

      Re: Networkgraph Custom Tooltip

      You're welcome, that's great I could help you!

      In case of any further questions, feel free to ask them,
      Regards!
      Kamil Kubik
      Highcharts Developer

      Return to “Highcharts Usage”