David-Desmaisons / Vue.D3.tree

Vue component to display tree based on D3.js layout.
https://david-desmaisons.github.io/Vue.D3.tree/tree
MIT License
877 stars 136 forks source link

Example from README is incorrect #22

Closed Wenzel closed 6 years ago

Wenzel commented 6 years ago

Hi @David-Desmaisons,

I think there is one last issue in your README's example:

<tree :data="tree" :node-text="name" layoutType="circular">
</tree>

If i use this, i get the following result: screenshot from 2018-08-08 17-56-36

The names are not displayed. However, if I remove the v-bind on the :node-text prop:

<tree :data="tree" node-text="name" layoutType="circular">
</tree>

screenshot from 2018-08-08 18-00-31

The names are displayed ! I'm a real beginner with VueJS, so i don't know what is the underlying issue.

Can you confirm ?

David-Desmaisons commented 6 years ago

You are correct. readme updated.