Change layout of nodes on the Network Chart addon

Gramps v6.0.4 (& .5) on Windows 10 (& 11)

If I run the Network Chart report (v0.0.32) the layout of the boxes that display the people is ‘verbose’ compared to the screen shots of this report in the wiki. I get large boxes divided into three sections:


whereas the wiki shows a much simper style:

I can’t find a way of making my chart adopt the simpler style shown in the wiki. What am I missing?

Two edits (thanks for those clarifications to my text) and 41 views but no answers.

OK, I’ll remove this addon from my Gramps installation.

I was engaged in some research and didn’t find time to run tests on the report. (And admit to finding the process of running report layout tests to be exceedingly tedious.)

After finding the wiki page and linking it, there didn’t seem to be any promising starting points in the options. (Nothing that seems related to 3 sections versus 1 section.) Are the wiki’s screen captures still current? Or are there different, undocumented options?

My first suggestion when troubleshooting reports is to close Gramps and rename the saved rename the file storing the last-used report options. There’s no GUI option to reset to defaults. And the number of permutations of options makes doing controlled tests impossible when your starting condition is variable.

Not that I could see, which is why I asked here.

Given that the ‘audience’ for this addon is ‘Expert’ it’s probably beyond my skill set and the fault is that I’m not completing correctly all the report options so please don’t spend any more time on my question. Thank you for looking though, I appreciate your effort.

I am not across all of this, but I have a workaround for the report. I am in Gramps 5.2.3 on windows 10, report version is 0.0.28

In the file NetworkChart.py replace these lines (at line 133 in my version):

self._born = self._("birth abbreviation|b.") + ' ' 
self._died = self._("death abbreviation|d.") + ' ' 
self._marr = self._("marriage abbreviation|m.") + ' '

with these lines:

self._born = self._("b.") + ' '
self._died = self._("d.") + ' '
self._marr = self._("m.") + ' '

The text labels are passed to Graphviz to draw the nodes, and some versions of Graphviz interpret the vertical bar character in the text label as a field separator, and therefore convert the node box to three elements.

I am not sure of the other consequences of changing the three labels as above. I think that the localisation was meant to strip out or replace one or the other of the text bits on each side of the bar. Thus the change might interfere with translations.

On my PC the file is located in the folder C:\Users\me\AppData\Roaming\gramps\gramps52\plugins\NetworkChart

The vertical bar was the old way of specifying a translation context. A second parameter is now used instead.

Replace self._("birth abbreviation|b.") with self._("b.", "birth abbreviation").

Thank you, that gives output that looks like the images in the wiki. The output is readable now.

Will this eventually patch find its way into an update to the addon?

I have created PR #767 to fix this.

1 Like

Ffiled a feature request for a “Reset” button to be added universally to the common Report options dialog.

  • 0013982: [Reports GUI] request adding “Reset” as a Standard button in the Reports

It looks like there is a typo on the new line 325 of the .pot file NetworkChart/po/template.pot

There’s an extra period (full stop) between “graph” and “inverts”
"graph.inverts, reverse the order to change."

That line is generated from a string in the source code. The author should take a look. It doesn’t make sense to me.

1 Like

I am sure this has been asked before but I cannot find a specific reference to it in the literature. So I apologize in advance!

Can I save and re-use an arbitrary report with a different name so that e.g. Several options being changed in the Narrative web report to create different look and feel as well as filters and also content?

The target audiences may appreciate different CSS as well as omitting certain ‘hot’ political points and associations.

This is a general question for reports (not just Narrative Web report) since the level of customization and filtering has become more sophisticated recently and being able to tweak and save the report instance with a new name and new settings might ‘engage’ the readers more.

brian

Create a Book for a Report configured with specific parameters. Books can contain a single report or a combination.

1 Like