Skip to content

Border

Reference

It defines options for the border that run perpendicular to the axis.

Namespace: options.scales[scaleId].border

1
2
3
4
5
6
7
.Options(o => o
    .Scales(s => s
        .ScaleId("y")
        .BeginAtZero(true)
        .Border(b => b
            .Color("#666")
            .Width(2))))

Display

If true, draw a border at the edge between the axis and the chart area. Default true

.Display(false)

Color

The color of the border line.

.Color("#666")

Width

The width of the border line. Default 1

.Width(2)

Dash

Length and spacing of dashes on grid lines. Default []

.Dash(1, 1, 2)

DashOffset

Offset for line dashes. Default 0.0

.DashOffset(0.2)

Z

z-index of the border layer. Values less than equal 0 are drawn under datasets, grater than 0 on top. Default 0

.Z(-1)