All examples By author By category About

johangithub

Officer AFSC Grouping using collapsible indented tree

Collapsible indented tree shows the hierarchical structure of data in a condensed manner. Usually it takes 200+ page document called Air Force Officer Classification Directory (AFOCD) to get a sense of what the Air Force Specialty Code structure looks like.

This is one of the first attemps using d3.js with examples from mbostock/1093025 and larskotthoff/702289. What I took away from larksfotthoff/702289 is how to start all the tree collapsed. I also learned how to dynamically size the frame using

d3.select(self.frameElement).transition()
.duration(duration)
.style("height", height + 50 + "px");

I'm not proud to admit that I typed out the JSON file for this one. I definitely know better now.