3,146
edits
Changes
→Performance
===Main===
[[File:Network_chart_menu_Main.png|left|thumb|400px450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Network Chart {{man label|Main}} preferences tab]]
The {{man label|Main}} preferences tab (see image on left) controls the output Filename, Folder, File Type and chart title.
The filename {{man label|Filename:}} defaults to the database 'family tree name ' + '_network' with '.svg'(default) added automatically on output. The {{man label|Enter Chart Title :}} field defaults to the database family tree name and the folder {{man label|Folder:}} to the users top level user default homefolder. Once an entry is changed it will be remembered and used for the next time as well. Clearing the entry will set it back to default. Additionally, name and date formats for the chart can be modified using the Gramps available formatting. The output File Type can be changed to a PDF. The PDF will not have URL links but everything else will display the same as the SVG.
{{man label|Graph style:}} menu selects the type of connectors with choices being Orthogonal, Straight, and Curved. In the example default output shown on the right, the default orthogonal option was selected resulting in straight connectors with right angles. Graphs with over 1500 people should probably use the Curved or Straight options with noticeable reduction in the time needed for graph generation.
[[File:Shakespeare_network_static_left_to_right.svg|center|thumb|800px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} Example Output for Left to Right and Static URL's]]
The {{man label|Spacing (inch):}} option controls the space between "generations" of nodes. It can be anywhere from 0.1 - 5.0 inches.
Finally, you can use "the {{man label|[ ] Different node shape/edges for gender" }} checkbox to controls control the box shapes and makes make the Male and Female box shapes different, by default this selection is turned off.
{{-}}
==Prerequisites==
Network Chart requires the python Python networkx module to assist in selecting what to display and Graphviz via the pygraphviz module to generate the chart.
Requires the following to be installed (type pip3 if system default is still python 2):
===Troubleshooting===
You can check if networkx and pygraphviz installed correctly by starting python Python (type python3 if system default is still python 2) and attempt to import both packages[https://www.reddit.com/r/gramps/comments/5z1gtj/show_all_database_entries_in_a_graphical_report/deuym8w/] eg:
python3
===Performance===
Network Chart was intended created for smaller small databases or subsets and is extremely fast for charts with less than 1500 nodes. However, it can generate very large graphs in reasonable time and should be adequate for those large databases that do not change frequently. Some optimizations for large databases are done automatically. The Trim Groups selection is one. Another method to greatly decrease the time to generate a chart on a large database is to select Straight or Curved for the Graph Style on the {{man label|[[Addon:NetworkChart#Main|Main]]}} preferences tab. Reducing the number of nodes to graph via {{man label|[[Addon:NetworkChart#Trim|Trim]]}} and {{man label|[[Addon:NetworkChart#Highlight|Highlight]]}} tabs will reduce graph generation times. For example, if your database contains 65535 individuals and you trim or highlight to plot only 8191 individuals, it would take closer to 20 seconds to generate the chart (based on the following table).
{| class="wikitable" style="margin-left: auto; margin-right: auto;"