bumbeishvili / org-chart

Highly customizable org chart. Integrations available for Angular, React, Vue
https://stackblitz.com/edit/web-platform-o5t1ha
MIT License
928 stars 330 forks source link

how do you render the chart in "fit" mode by default? #302

Closed akshay-developer-2021 closed 1 year ago

akshay-developer-2021 commented 1 year ago

You can use .render().fit() but it makes it look weird because first it renders in the default setting and then it animates into "fit" view.

bumbeishvili commented 1 year ago

I don't think that there is an easy way around that.

I personally don't think that it's an issue, looks quite good to my eye

https://stackblitz.com/edit/js-nf6zcx?file=index.html