''[JM] 9 Oct 2012'' - someone asked me to create a kind of org chart from a list of employees, which includes (among other employee's relevant information), the employee's manager name.
There is of course some off the shelve solutions using google docs or visio, but I am always on the mood to give Tcl a try.
<
>
this script (not fully tested btw) uses [LemonTree] again, given the flexibility it offers.
I removed the code I did not need so you better go to check the original LemonTree to fully see the beauty of this code from [RS]
<
>
the script parse a file (hardcoded name, sorry) called "orgchart.csv" which contents are like this:
<
>
General,
Colonel A,General
Colonel B,General
Captain A,Colonel B
Captain B,Colonel B
Captain C,Colonel B
Sergeant A,Captain A
Sergeant B,Captain A
Private A,Sergeant B
Private B,Sergeant B
<
>
the objective is to create something similar to http://en.wikipedia.org/wiki/Organizational_chart, but with a dynamic twist.
<
>
as an exercise for the reader:
* put some info on the ballon expanding the CSV files with employee ID or position
* add a person icon instead of the folder one shown
<>Enter Category Here