Dependency arrow customization



Can we customize the relationship arrow. Presently its displaying as curved lines can we make it as straight lines. We want straight lines to connect each other task to avoid the unnecessary curved lines.
please provide the example if possible.



Any help about this topic would be appreciated.



Do you mean you want to completely change the way relation lines are rendered?

Currently, we don’t have an API for that. The only thing I can suggest is to check gantt.addLinkLayer function. You can render custom link elements there and hide the default ones.

Other than that, there is no good way of redefining the general shape of relation lines.