Open main menu

Gramps β

Changes

Howto: Make a relationship chart

294 bytes added, 9 March
no edit summary
{{languages|Howto: Make a relationship chart}}
{{out of date}}How to make a relationship chart (for either ancestors, descendants, ...) with Gramps 45.x. and the [[Gramps_4.1_Wiki_Manual_Gramps_{{Version manual}}_Wiki_Manual_-_Reports_-_part_5#Relationship_Graph|Relationship graph report]].[[ImageFile:RelationshipChartDescendants-example-41.png|right|thumb|300px|An example chart]]
== Before you start ==
The Relationship graph report uses the GraphViz backend, which should already be installed, if not you will need to install [http://graphviz.org graphviz[Output_formats#Graphviz|GraphViz]] (on linux, use your package manager).
Gramps can produce charts, but to view them, you need other programs. We recommend that you install the following:
* [http://graphviz.org [Output_formats#Graphviz|GraphViz]]: '''required''' for the creation of the relationship charts
* [http://www.inkscape.org/ Inkscape]: for viewing and editing svg charts, export to png
* [http://www.gnu.org/software/gv/ gv], [http://linuxappfinder.com/package/kghostview kghostview]: for viewing ps charts
In Gramps you can define filters to make a selection of individuals, see [[Example_filters| Examples of filters]]. In the relationship chart all custom person filters you made will be available, as well as the standard descendants and ancestors filters. These last start from the active person.
{{man tip|Tip|You can add [[Step_relationships|stepchildren]] to a family stepchildren by setting the relationship of ''Relationship to Mother'' (or Father) for the child to ''stepchild'' in the mother [[Gramps_{{Version manual}}_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_1#Child_Reference_Editor|Child Reference Editor]]. The other parent's Relationship should remain set to ''step childBirth''. In doing so, these children will be become part of a descendant report without the need to create a custom filter to include them.}}
=== How many people ?===
== Example 1-A: a descendant chart ==
[[File:RelationshipChartDescendants-example-41.png|right|thumb|220px|A descendant chart, click for details]]Download Use the [[example.gramps]] that came with your install, or download [https://raw.githubusercontent.com/gramps-project/gramps/maintenance/gramps41gramps50/example/gramps/example.gramps example.gramps], save to a file, create a new database in Gramps called example, and import the example.gramps data into it.
If not the case, set the active person to ''Garner von Zieliński, Lewis Anderson Sr''.
== Example 2: A chart with ancestors, descendants and their families ==
{{stub}}<!--example 2 & 3 and section below them still need a bit of an update-->
{{man note|Note:|This example uses filters. See [[Example filters| Examples of filters]] for an introductory example.}}
<!-- Can not find Cristiansen, Frances in example.gramps -->
{{man tip|Tips|Some tips around GraphViz are [http://bernaerts.dyndns.org/linux/74-ubuntu/287-ubuntu-graphviz-viewer-gnome-thumbnailer available].}}
 
{{man warn|Bugged version|[http://graphviz.org Graphviz] (v2.12) has a bug. In order to correctly display the family nodes (yellow balloons), all occurrences of the word ''ellipse'' should be changed to ''egg'' (see [http://www.graphviz.org/bugs/b1078.html bug report 1078]).}}
In the menu, select {{man menu|Reports -> Graphs -> Relationship Graph...}}.
=== Manual changes ===
The Graphviz '''.gv''' dot file is a text file with a well documented structure, (See: [http://www.graphviz.org/Documentation.php documentation/ graphviz.org/Documentationdocumentation] )
digraph GRAMPS_graph
== Troubleshooting ==
*If you encounter bad fonts (missing characters) or wrong fontsizes, see [[Howto:_Make_a_relationship_chart#Example_3:_Generating_the_graph_by_using_the_Graphviz_command_line_tool|Example 3]] on how you can set the font yourself.
*If you have missing lines in Relationship (and other similar) Graph pdf output; then use a larger paper size (or use multiple pages).(See {{bug|10028}})
*If you have a bad resolution of png, eg unreadable text, this is probably because you have set a paper size which is to small. See [[Howto:_Make_a_relationship_chart#Example_1-A:_a_descendant_chart|Example 1-A]]: set the papersize of number of pages to a high number, but select in '''GraphViz Options''', in ''Aspect ratio'': <tt>Fill the given area</tt>, or use <tt>Compress to minimal size</tt>
{{man warn|Reports and custom IDs|After a GEDCOM import, your database can use some non-standard IDs (ie. 123I or 456U not set on {{man menu|Edit --> Preferences --> ID Formats}}). If generated reports do not properly display data, then try [[Gramps_3.4_Wiki_Manual_Gramps_{{Version manual}}_Wiki_Manual_-_Tools#Reorder_GRAMPS_IDReorder_Gramps_ID|Reorder GRAMPS Gramps IDs tool]] ({{man menu|Tools-->Database Family Tree Processing-->Reorder GRAMPS Gramps IDs}}).}}
== Further cool Additional things to do try ==
* You can make descendant charts and add them to the media gallery of the person. Like that, the chart is available from the website.
* offer Offer a chart on your website as a [[Make flash plugin from a png |flash relationship graph]], enabling zooming, moving, ... over your data or just use SVG for Firefox and OperaChrome, see [http[Addon://www.gramps-project.org/wiki/index.php?title=UnsupportedPlugins#DenominoViso_-_HTML_Ancestors_page DenominoViso|DenominoViso]]
== Want to help developing ? Help improve the Graph reports ==If you go through examine the dot specifications, you will note that much more can be done with graphicsGraphViz output. If you have programming skills you can add some functionality:* More/better Improved text in the boxes: what text and how to organize it?* Coloring. See the [[Gramps_4.1_Wiki_Manual_Gramps_{{Version manual}}_Wiki_Manual_-_Reports_-_part_5#Family_Lines_Graph|Family Lines Graph]]: for a color per family, for specific relations, for the central person, ...
== Link to the manual See also ==* Also check out the [[Gramps_3.4_Wiki_Manual_Gramps_{{Version manual}}_Wiki_Manual_-_Reports_-_Reports_part_5#Relationship_Graph |Relationship Graph - User Manual]].
[[Category:Tutorials|Make a relationship chart]]
[[Category:How do I...|R]]