Skip to main content

Interface: ChordDiagramOptions

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

Options for ChordDiagram.

Properties​

arcOpacity?​

optional arcOpacity: number

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

Fill opacity of the group arcs. Default: 1.


colors?​

optional colors: string | string[]

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

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


flows?​

optional flows: ChordFlow[]

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

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


gap?​

optional gap: number

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

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


groupCount?​

optional groupCount: number

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

Number of groups, required with flows.


labelBuff?​

optional labelBuff: number

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

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


labelFontSize?​

optional labelFontSize: number

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

Font size for group labels. Default: 20.


labels?​

optional labels: string[]

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

Group labels, by index. Default: [].


matrix?​

optional matrix: number[][]

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

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:168

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


ribbonOpacity?​

optional ribbonOpacity: number

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

Fill opacity of the ribbons. Default: 0.6.


ringWidth?​

optional ringWidth: number

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

Thickness of the group ring. Default: 0.25.


showLabels?​

optional showLabels: boolean

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

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


startAngle?​

optional startAngle: number

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

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