omeka-s-modules / Datavis

GNU General Public License v3.0
2 stars 1 forks source link

Node overflow in network diagram #25

Open allanaaa opened 5 months ago

allanaaa commented 5 months ago

Can the network relationships diagram be configured so that its default display is to contain all the items within the given width and height?

The default setting for this is 700 x 700, but with a pretty average set of nodes there are a few being cut off at the edges. Can the diagram automatically reduce the size between nodes, or reduce the overall size of everything, to fit within the dimensions given?

It looks like the centres of all the nodes are within, so maybe you just need to account for the full size of the circles too?

Screenshot 2024-02-06 at 13 59 53
allanaaa commented 5 months ago

I wonder if you can do similar adjustment to the arc diagram: instead of giving a top and bottom margin setting, just automatically set that spacing to include all the text inside the diagram without anything being cut off.

I see that top and bottom margin are counting up from the centre of the first item label, and down from the centre of the last item label, but it would make sense to do this automatically, and simplify the options for people.

Margin=0 looks like this:

Screenshot 2024-02-06 at 14 56 35