For some reason sometimes data.tree will return an entire path string to a node instead of just the last element we need to rebuild the tree. This helps fix that by taking the last element out of the path and returning it.
| 1 | getLastElementInPath(val)
 | 
| val | the path to get the last element out of | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.