ChordDiagram

New in version 5.0.11

ChordDiagram ( appearanceConst ;​ nodeWidth ;​ nodePadding ;​ linkPadding )

Argument Type Range Default Note
appearanceConst int 0..127 default
nodeWidth num 0..10000 6%
nodePadding num 0..10000 2%
linkPadding num 0..10000 0%
Examples

ChordDiagram(label;​20)

ChordDiagram(label;​5%;​0)

ChordDiagram(label;​;​10;​0.5%)

Description

The ChordDiagram() function should always be listed first, before other chord functions are called.
The 1st argument appearanceConstants can be used to add labels to nodes and links. Currently only the appearance constant label is supported. The 2nd argument nodeWidth can be used to control the width of the nodes. The width must be specified in absolute pixels or as a percentage of the plot area.

CHORD_DIAGRAM_01
1

OpenDrawing(300;​300)

2

ChordDiagram(label) /* Function ChordDiagram(...) is always listed first. */

3

ChordDiagramData(2;​"A" "X" 5;​ "A" "Y" 7;​ "A" "Z" 6;​ "B" "X" 2;​ "B" "Y" 9;​ "B" "Z" 4)

4

ChordDiagramNodeLabel(;​auto;​"{NODE_ID}")

5

CloseDrawing()

CHORD_DIAGRAM_01
CHORD_DIAGRAM_02
1

OpenDrawing(300;​300)

2

ChordDiagram(label;​25) /* Function ChordDiagram(...) is always listed first. */

3

ChordDiagramData(2;​"A" "X" 5;​ "A" "Y" 7;​ "A" "Z" 6;​ "B" "X" 2;​ "B" "Y" 9;​ "B" "Z" 4)

4

ChordDiagramNodeLabel(;​auto;​"{NODE_ID}")

5

CloseDrawing()

CHORD_DIAGRAM_02

The 3rd argument nodePadding can be used to control the padding between nodes (absolute in pixels or as a percentage of the plot area).

CHORD_DIAGRAM_03
1

OpenDrawing(300;​300)

2

ChordDiagram(label;​20;​0) /* Function ChordDiagram(...) is always listed first. */

3

ChordDiagramData(2;​"A" "X" 5;​ "A" "Y" 7;​ "A" "Z" 6;​ "B" "X" 2;​ "B" "Y" 9;​ "B" "Z" 4)

4

ChordDiagramNodeLabel(;​auto;​"{NODE_ID}")

5

CloseDrawing()

CHORD_DIAGRAM_03
CHORD_DIAGRAM_04
1

OpenDrawing(300;​300)

2

ChordDiagram(label;​20;​16) /* Function ChordDiagram(...) is always listed first. */

3

ChordDiagramData(2;​"A" "X" 5;​ "A" "Y" 7;​ "A" "Z" 6;​ "B" "X" 2;​ "B" "Y" 9;​ "B" "Z" 4)

4

ChordDiagramNodeLabel(;​auto;​"{NODE_ID}")

5

CloseDrawing()

CHORD_DIAGRAM_04

Optionally, a padding can be added between nodes and links by using the 4th argument linkPadding (absolute in pixels or as a percentage of the plot area).

CHORD_DIAGRAM_05
1

OpenDrawing(300;​300)

2

ChordDiagram(label;​20;​8;​1.5%) /* Function ChordDiagram(...) is always listed first. */

3

ChordDiagramData(2;​"A" "X" 5;​ "A" "Y" 7;​ "A" "Z" 6;​ "B" "X" 2;​ "B" "Y" 9;​ "B" "Z" 4)

4

ChordDiagramNodeLabel(;​auto;​"{NODE_ID}")

5

CloseDrawing()

CHORD_DIAGRAM_05

Note that title functions such as TitleText(), TitleStyle(), etc. are ignored in connection with chord diagrams, use the function AddText() instead.

Scroll to Top