Skip to content

Arc

Reference

Arcs are used in the polar area, doughnut and pie charts.

Namespace: options.elements.arc

1
2
3
.Options(o => o
    .Elements(e => e
        .Arc().Angle(1).Circular(true)))

Base Element Settings

BackgroundColor

Fill color.

.BackgroundColor("blue")

BorderWidth

Stroke width.

.BorderWidth(1)

BorderColor

Stroke color.

.BorderColor("grey")

Arc Element Settings

Angle

Arc angle to cover (for polar only). Default circumference / (arc count)

.Angle(1)

BorderAlign

Arc stroke alignment. Default 'center'

.BorderAlign(BorderAlign.Inner)

BorderDash

Arc line dash.

.BorderDash(15, 3, 3)

BorderDashOffset

Arc line dash offset. Default 0.0

.BorderDashOffset(0.1)

BorderJoinStyle

Line join style. The default is 'round' when borderAlign is 'inner'

.BorderJoinStyle(JoinStyle.Miter)

Circular

By default the Arc is curved. If circular: false the Arc will be flat. Default true

.Circular(false)