:sectnums: :title: orgviz :sectanchors: :toc:
Join the link:https://t.me/joinchat/BqSGNBqlDufb5yuvsV1Xgw[orgviz community telegram chat] for user questions, comments, or development gossip.
= orgviz
A tool to visualize the "real" structure of organizations.
image::docs/ExampleCompany.png[]
On a technical level, this tool basically parses a high level text based language, which is compiled to the amazing GraphViz dia program language. It provides extra constructs and ease of use for drawing complex org charts (graphs!).
== Installation
This tool has been tested on Fedora 30, but will almost certainly work on any Linux with python3 and Graphviz installed. If Mac's have Graphviz, then it should work on a Mac just fine.
If using this tool from source, the following packages are required;
dot - you can get this from yum install graphviz on most Linux distributions.python3The following python3 libraries are also required;
python3-configargparse (note, not just argparse)== Usage
To run orgviz against an input file and generate an image;
./orgviz.py -I <inputfile>
For more help;
./orgviz.py --help
=== Getting started with the example file
Download the https://raw.githubusercontent.com/jamesread/orgviz/master/examples/ExampleCompany.org[example org file here] (right click on link, save as). Don't copy and paste the text because it might break the tabs in the file.
Edit the file using your favourite text editor, following this README guidance.
When you're ready, run orgviz like this;
NOTE: Most image viewers support "refresh", so you can edit in one text editor window, and then "refresh" the currently open image just by pressing F5.
== Organization (Input) file syntax
For the example input file that makes up the screenshot above, please see the examples directory.
Note: The input file requires https://www.youtube.com/watch?v=SsoOG6ZeyUI[tabs, not spaces]. It won't parse if you indent with spaces.
Available attributes include;
NOTE: You can add any attribute you like, such as phoneNumber, or email,
but attributes not listed above won't be drawn.
== Connections
Connection types can be anything - the format is [type] -> Full Name. Some
common types are supports, reports, loves, etc.
NOTE: supports is the only connection type that draws a "dotted line" between
people. All other line types are straight arrows.
== Vizualisation Type (vizType)
When rendering the picture, there are various ways to vizualize the people. You
can choose 1 of these options (eg --vizType none);
DS - Decision Making Unit and Sentiment (default)
** Uses the dmu and sentiment attributes of people. <<vizTypeDs,Go to vizType=DS docs>>.inf - Influence - A simple enemy / supporter / promoter
** Uses the influence attribute of people. <<vizTypeInf,Go to vizType=inf docs>>none - everyone is drawn with just white boxes. <<vizTypeNone,Go to vizType=none docs>>=== Option 1: DS - Decision Making Unit and Sentiment [[vizTypeDs]] (default)
orgviz defaults to this DS view, which is useful for sales teams. DS
stands for Decision Making Unit (dmu) and Sentiment (sentiment).
==== Example
image::docs/vizTypeDs.png[Example of DS]
==== How to use
Available dmu options;
Available sentiment options;
=== Option 2: inf - Influence [[vizTypeInf]]
There is also the option to create a more simplistic view, called "influence" - i.e does this person have influence over this Opportunity/Account or not?
==== Example
image::docs/vizTypeInf.png[Example of DS]
==== How to use
Available influence options;
enemy - Redsupporter - Bluepromoter - Greeninternal - Black=== Option 3: Plain display [[vizTypeNone]]
This removes the influence type when generating the picture - this is useful for presentations and similar.
==== Example
image::docs/vizTypeNone.png[Example of no vizType]
==== How to use
You don't need to change any attributes. Simply run orgviz like this;
== Configuration File
If you get tired of specifying command line options, then create
~/.orgviz.cfg and pop your options in there to save time. Use
--help to find syntax for this and the list of all available options.
== Profile pictures
At the moment, profile pictures just come from a directory of .jpeg files
that match people's names. Set the profilePictureDirectory option to a
directory of photos, and profilePictures to use this feature.
There is a separate microservice in development that auto-grabs profile pictures and LinkedIn details, but this is not released yet.
== Credits
Alice: https://www.pexels.com/photo/woman-wearing-blue-top-2169434/[Photo by Heitor Verdi from Pexels]
Bob: https://www.pexels.com/photo/photography-of-a-guy-wearing-green-shirt-1222271/[Photo by Justin Shaifer from Pexels]
Charles: https://www.pexels.com/photo/man-leaning-on-wall-2128807/[Photo from Pexels]
Dave: https://www.pexels.com/photo/gray-scale-bearded-man-842980/[Photo by Craig McKay from Pexels]
Fred: https://www.pexels.com/photo/man-crossed-arms-1516680/[Photo by Nitin Khajotia from Pexels]
Content type
Image
Digest
Size
200.8 MB
Last updated
almost 6 years ago
docker pull jamesread/orgviz-webui