Changes

From Gramps

Addon:NetworkChart

58 bytes added, 05:49, 5 September 2025
Main
The filename defaults to the database name + '_network' with '.svg'(default) added automatically on output. The Chart Title defaults to the database name and the folder to the top level user default home. 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.
{{man label|Graph Direction :}} controls which of the four different orientations to use.
{{man label|URL Style :}} selects one of Database, Dynamic, Static, or None (Don't include). This option selects what hyperlink will be used for individual nodes when the SVG chart is viewed from a browser. The Database option will select the primary URL from the database if one is available or none if it is not. Dynamic will use the {{man label|URL Prefix, Suffix :}} from the next line in the Menu and the GrampsID of the node. The Example Default Output chart shown includes dynamic URL's. For example, Henry Webb in the database has GrampsID = I0125. So the URL for that node will have the prefix of ''<nowiki>https://mywebsite.com/home/</nowiki>'' and the suffix '.html' yielding a node with a link to ''<nowiki>https://mywebsite.com/home/I0125.html</nowiki>''. The dynamic URL changes for every node. A static URL will use only the URL Prefix and the Don't Include URL or None will not place any link in the nodes.
[[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 font selection is straightforward. Obtain the name of the font that you wish to use and type it in the entry box. The only requirement is that the font already be installed on your system. If the font is not found then a default font will be used. This is a silent operation and will not warn on a font not found. When the SVG graph is generated that font will be identified for use, however, if someone viewing the chart does not have the same font installed they will see their default font instead. (Embedding fonts in SVGs or making them a local access is possible but not available in this addon.) The default font is White Rabbit by Matthew Welch which is an extremely readable font. It can be obtained from https://www.fontsquirrel.com/fonts/white-rabbit and the license found at http://www.squaregear.net/fonts/license.shtml .
The Spacing option controls the space between "generations" of nodes. It can be anywhere from 0.1 - 5.0 inches.
===Color===
3,146
edits

Navigation menu