Use Constraints
Start here

# Organic Layout with Constraints

This demo shows how to use supplemental layout data to enforce placement constraints when using the Organic Layout algorithm.

The placement constraints used in this demo force the turquoise nodes onto a perfect circle. Without constraints, the turquoise nodes are placed on an irregular path.

Click the button in the toolbar to toggle between Organic Layout with and without constraints.

### Code Snippet

You can copy the code snippet to configure the layout from GitHub.

### Documentation

See the Constraints section in the Developer's Guide for an in-depth discussion of the relevant concepts.

See the OrganicConstraintData API documentation for detailed information on all available placement constraints.