margin

margins for autoplacement in the diagram

object margin;

Example

new dhx.Diagram(document.body, {
    margin:{
      x:20, y:20,
      itemX:50, itemY:50
    }
});

Details
  • itemX - horizontal space between two shapes
  • itemY - vertical space between two shapes
  • x - horizontal space between the start of a diagram and the first item
  • y - vertical space between the start of a diagram and the first item

The default values of margins are:

{ x:40, y:40, itemX:40, itemY: 40 }
Back to top