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
874 stars 136 forks source link

Is there a way to make the font size larger for the node names? #25

Closed Peter-Barrett closed 6 years ago

Peter-Barrett commented 6 years ago

I'm looking to make the font size larger as it's quite small at the moment but couldn't see an option for it.

David-Desmaisons commented 6 years ago
.treeclass .nodetree text {
  font: 10px sans-serif;
  cursor: pointer;
}

This is the CSS selector that gives the font size, if you create a more specific one (for example creatind the component inside a div with an id and using a #id .treeclass .nodetree text rule, you can alter font-size.

Peter-Barrett commented 6 years ago

thanks 👍

emelendez commented 3 years ago

See my dynamic way in #60