# layout

Bubble: `xy` or `pack`. Network Graph: deterministic `circular`, `force`, or top-to-bottom `hierarchical` placement.

Canonical: https://chart.syidax.com/docs/options/layout/

<a id="definition"></a>

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `layout` |
| HTML attribute | `layout` |
| Type | `string` |
| Default | `undefined` |

undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.

<a id="example"></a>

## Configuration example

```javascript
// Register sy-network-graph and create the element before configuring it.
chart.layout = "circular";
```

- [Network Graph · Complete examples and API](https://chart.syidax.com/docs/components/network-graph.md)

<a id="related"></a>

## Related documentation

A property with the same name may have different types and defaults across charts. When using a direct tag, follow that chart's documentation below.

- [Shared facade and direct tags](https://chart.syidax.com/docs/concepts.md)
- [sy-bubble-chart](https://chart.syidax.com/docs/components/bubble.md#property-layout)
- [sy-network-graph](https://chart.syidax.com/docs/components/network-graph.md#property-layout)
