uchicago-library / library_website

The University of Chicago Library Website
5 stars 5 forks source link

Build method of creating org charts from staff directory data #163

Open dbietila opened 5 years ago

dbietila commented 5 years ago

HR requests that we provide a means of generating org charts from staff directory data. Wagtail currently includes unit affiliation and reporting relationships on Staff records.

I recommend using GraphViz ( https://www.graphviz.org/ ) to produce the charts. This will involve converting staff data into a simple node and edge notation, and specifying a layout template within GraphViz. I (David) will upload a mockup of the Graphviz files as a reference.

dbietila commented 5 years ago

Here are a sample graphviz code file and an output png. I ran the graphviz command unflatten -l 3 orgchart1.txt | dot -Tpng -o orgchart.png to render the file.

orgchart

orgchart1.txt