fperucic / treant-js

Treant.js - javascript library for drawing tree diagrams
MIT License
864 stars 314 forks source link

node showing messy, half of the chart not showing unless scrolling to right #116

Open ehsan-hakimi opened 6 years ago

ehsan-hakimi commented 6 years ago

Hi Team, Thanks for the useful configurable JS library. I have try to use custom-color mode so this issue might not happen for others. When I build data dynamically (instead of static array inside custom-colored.js), width size of SVG become double size of screen almost 2 or 3000px and showing nodes clutter. So half of the chart not showing also line are not attached to the node correctly. If I change back to your static nodes, work again. Same issue with any other browsers. Also run without any bug in console area. I have double check my object via chrome debugger but there is no difference between mine and OOTB. I only have less attribute. Please see the screenshot. Could you please have a look to see what is the issue? jsorgchart

Thanks