Skip to main content

Interface: ChordDiagramOptions

Defined in: src/mobjects/graphing/ChordDiagram.ts:180

Options for ChordDiagram.

Properties​

arcOpacity?​

optional arcOpacity: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:200

Fill opacity of the group arcs. Default: 1.


colors?​

optional colors: string | string[]

Defined in: src/mobjects/graphing/ChordDiagram.ts:198

Group colors. Single color applies to all, array cycles. Default: Manim palette.


flows?​

optional flows: ChordFlow[]

Defined in: src/mobjects/graphing/ChordDiagram.ts:184

Link-list input, used with groupCount when matrix is omitted.


gap?​

optional gap: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:194

Angular gap between groups, in radians. Default: 0.05.


groupCount?​

optional groupCount: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:186

Number of groups, required with flows.


labelBuff?​

optional labelBuff: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:208

Gap between the ring and a label. Default: 0.3.


labelFontSize?​

optional labelFontSize: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:206

Font size for group labels. Default: 20.


labels?​

optional labels: string[]

Defined in: src/mobjects/graphing/ChordDiagram.ts:188

Group labels, by index. Default: [].


matrix?​

optional matrix: number[][]

Defined in: src/mobjects/graphing/ChordDiagram.ts:182

Square flow matrix. matrix[i][j] is the flow from group i to group j.


radius?​

optional radius: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:190

Inner radius of the ring (ribbons are drawn inside it). Default: 2.5.


ribbonOpacity?​

optional ribbonOpacity: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:202

Fill opacity of the ribbons. Default: 0.6.


ringWidth?​

optional ringWidth: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:192

Thickness of the group ring. Default: 0.25.


showLabels?​

optional showLabels: boolean

Defined in: src/mobjects/graphing/ChordDiagram.ts:204

Whether to draw group labels. Default: true when labels are given.


startAngle?​

optional startAngle: number

Defined in: src/mobjects/graphing/ChordDiagram.ts:196

Angle of the first group's start edge, in radians. Default: Math.PI / 2.