ng-orgchart
ng-orgchart copied to clipboard
Change color of one node
Is there a way to change the color of an especific node on Angular? I´m thinking about pass this information on the array that builds the tree (ds).
Hi @Rezoppei You can change the styles of a specific node based on its id attribute. Please refer to Custom Node Chart Demo - https://stackblitz.com/edit/ng-orgchart-demo . I change the root node color in the styles.css file.
#oc-1 .fullname {
color: blue;
}