Skip to content

Instantly share code, notes, and snippets.

@jelbourn
Created April 15, 2018 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jelbourn/112216cd6853c0dc3a1bf6a40b671396 to your computer and use it in GitHub Desktop.
Save jelbourn/112216cd6853c0dc3a1bf6a40b671396 to your computer and use it in GitHub Desktop.
Example tree data
[
{
name: 'Animalia',
subclassification: [
{
name: 'Chordata',
subclassification: [
{name: 'Craniata', subclassification: []},
{name: 'Tunicata', subclassification: []},
{name: 'Cephalochordata', subclassification: []},
]
},
{
name: 'Mollusca',
subclassification: [
{name: 'Gastropoda', subclassification: []},
{name: 'Bivalvia', subclassification: []},
{name: 'Cephalopoda', subclassification: []},
]
},
{
name: 'Arthropoda',
subclassification: [
{name: 'Trilobita', subclassification: []},
{name: 'Crustacea', subclassification: []},
{name: 'Hexapoda', subclassification: []},
]
},
]
}, {
name: 'Plantae',
subclassification: [
{
name: 'Streptobionta',
subclassification: [
{name: 'Klebsormidiophyceae', subclassification: []},
{name: 'Phragmoplastophyta', subclassification: []},
]
},
]
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment