almende / chap-links-library

a web based visualization library for displaying graphs, networks, and timelines
http://almende.github.com/chap-links-library
Apache License 2.0
599 stars 168 forks source link

Allow for a different vertical margin vs. horizontal margin #332

Open EBeatles opened 9 years ago

EBeatles commented 9 years ago

I have some stacked events, but they are stacking higher than necessary because of horizontal spacing. eventMargin appears to control both horizontal and vertical spacing. If I drop it to 0, the stacking corrects to the appropriate height. If I change back to 10, the height of a group is 1 taller than it needs to be. Having an eventMarginHeight and eventMarginWidth would solve this.

Here it is with eventMargin = 10: image

Here it is with eventMargin = 0; image

josdejong commented 9 years ago

Thanks for your suggestion.

Note that in the successor of chap-links-library, vis.js, this is actually implemented, you can separately configure horizontal and vertical margins.