Skip to content

Layout

Reference

The layout configuration determines the padding around the chart area (the area where the data is displayed) within the canvas. This allows you to add space between the chart area and other elements, such as legends, titles, and tooltips, or to ensure that the chart looks better when embedded in a larger UI.

Namespace: options.layout

1
2
3
.Options(o => o
    .Layout(l => l
        .AutoPadding(false)))

AutoPadding

Apply automatic padding so visible elements are completely drawn. Default true

.AutoPadding(false)

Padding

Padding around the title.

.Padding(5)
See padding configuration. 🔗
.Padding(p => p.Top(5).Bottom(10))