ChordDiagramLinkStyle
New in version 5.0.11
ChordDiagramLinkStyle ( sourceNodeID ; targetNodeID ; color ; colorVariant )
Argument | Type | Range | Default | Note |
---|---|---|---|---|
sourceNodeID | str | 0..1000 | ||
targetNodeID | str | 0..1000 | ||
color | rgba | 0..255 | #8886 | |
colorVariant | int | -1..0 | 0 |
Examples
ChordDiagramLinkStyle(;;lightGray)
ChordDiagramLinkStyle(;;#0f02)
ChordDiagramLinkStyle("A";"M";darkYellow;-1)
Description
The ChordDiagramLinkStyle() function can be used to control the appearance of individual links. The sourceNodeID and targetNodeID arguments define which link the function is applied to. If the sourceNodeID argument is empty, then the function is applied to all links with the target node defined in the targetNodeID argument. If the targetNodeID argument is empty, the function is applied to all links with the source node defined in the sourceNodeID argument. If both the sourceNodeID and targetNodeID arguments are empty, the function is applied to all links. The appearance can be varied by using the color and colorVariant arguments.
| CHORD_DIAGRAM_LINK_STYLE_01 |
1 | OpenDrawing(300;200) |
2 | ChordDiagram(label;16;3;1%) /* 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 | ChordDiagramLinkStyle(;;#a004) |
5 | ChordDiagramNodeStyle(;darkRed) |
6 | ChordDiagramNodeLabel(;auto;"{NODE_ID}") |
7 |
| CHORD_DIAGRAM_LINK_STYLE_02 |
1 | OpenDrawing(600;450) |
2 | ChordDiagram(label;15;1%;0.5%) /* Function ChordDiagram(...) is always listed first. */ |
3 | ChordDiagramOptions(0;0;0.6) |
4 | ChordDiagramData(2; |
5 | "Brazil" "Portugal" 5; "Brazil" "France" 1; "Brazil" "Spain" 1; "Brazil" "England" 1; "Canada" "Portugal" 1; "Canada" "France" 5; "Canada" "England" 1; "Mexico" "Portugal" 1; "Mexico" "France" 1; "Mexico" "Spain" 5; "Mexico" "England" 1; "USA" "Portugal" 1; "USA" "France" 1; "USA" "Spain" 1; "USA" "England" 5; "Portugal" "Angola" 2; "Portugal" "Senegal" 1; "Portugal" "Morocco" 1; "Portugal" "South Africa" 3; "France" "Angola" 1; "France" "Senegal" 3; "France" "Mali" 3; "France" "Morocco" 3; "France" "South Africa" 1; "Spain" "Senegal" 1; "Spain" "Morocco" 3; "Spain" "South Africa" 1; "England" "Angola" 1; "England" "Senegal" 1; "England" "Morocco" 2; "England" "South Africa" 7; "South Africa" "China" 5; "South Africa" "India" 1; "South Africa" "Japan" 3; "Angola" "China" 5; "Angola" "India" 1; "Angola" "Japan" 3; "Senegal" "China" 5; "Senegal" "India" 1; "Senegal" "Japan" 3; "Mali" "China" 5; "Mali" "India" 1; "Mali" "Japan" 3; "Morocco" "China" 5; "Morocco" "India" 1; "Morocco" "Japan" 3) |
6 | ChordDiagramLinkStyle(;;#0002) |
7 | ChordDiagramLinkStyle(;"China";#306CA077) |
8 | |
9 | ChordDiagramNodeLabel(;auto;"{NODE_ID}";Arial;9;bold;white) |
10 |
| CHORD_DIAGRAM_LINK_STYLE_03 |
1 | OpenDrawing(600;450) |
2 | ChordDiagram(label;15;1%;0.5%) /* Function ChordDiagram(...) is always listed first. */ |
3 | ChordDiagramOptions(0;0;0.6) |
4 | ChordDiagramData(2; |
5 | "Brazil" "Portugal" 5; "Brazil" "France" 1; "Brazil" "Spain" 1; "Brazil" "England" 1; "Canada" "Portugal" 1; "Canada" "France" 5; "Canada" "England" 1; "Mexico" "Portugal" 1; "Mexico" "France" 1; "Mexico" "Spain" 5; "Mexico" "England" 1; "USA" "Portugal" 1; "USA" "France" 1; "USA" "Spain" 1; "USA" "England" 5; "Portugal" "Angola" 2; "Portugal" "Senegal" 1; "Portugal" "Morocco" 1; "Portugal" "South Africa" 3; "France" "Angola" 1; "France" "Senegal" 3; "France" "Mali" 3; "France" "Morocco" 3; "France" "South Africa" 1; "Spain" "Senegal" 1; "Spain" "Morocco" 3; "Spain" "South Africa" 1; "England" "Angola" 1; "England" "Senegal" 1; "England" "Morocco" 2; "England" "South Africa" 7; "South Africa" "China" 5; "South Africa" "India" 1; "South Africa" "Japan" 3; "Angola" "China" 5; "Angola" "India" 1; "Angola" "Japan" 3; "Senegal" "China" 5; "Senegal" "India" 1; "Senegal" "Japan" 3; "Mali" "China" 5; "Mali" "India" 1; "Mali" "Japan" 3; "Morocco" "China" 5; "Morocco" "India" 1; "Morocco" "Japan" 3) |
6 | ChordDiagramLinkStyle(;;#0002) |
7 | ChordDiagramLinkStyle("USA";"England";#0B572A88) |
8 | ChordDiagramLinkStyle("England";"South Africa";#32949288) |
9 | |
10 | ChordDiagramNodeLabel(;auto;"{NODE_ID}";Arial;9;bold;white) |
11 |
The ChordDiagramLinkColorScheme() function can be customized by using the corresponding ChordDiagramLinkStyle() function. The color scheme function should be listed before the style function(s).
| CHORD_DIAGRAM_LINK_STYLE_04 |
1 | OpenDrawing(600;450) |
2 | ChordDiagram(label;15;1%;0.5%) /* Function ChordDiagram(...) is always listed first. */ |
3 | ChordDiagramOptions(0;0;0.6) |
4 | ChordDiagramData(2; |
5 | "Brazil" "Portugal" 5; "Brazil" "France" 1; "Brazil" "Spain" 1; "Brazil" "England" 1; "Canada" "Portugal" 1; "Canada" "France" 5; "Canada" "England" 1; "Mexico" "Portugal" 1; "Mexico" "France" 1; "Mexico" "Spain" 5; "Mexico" "England" 1; "USA" "Portugal" 1; "USA" "France" 1; "USA" "Spain" 1; "USA" "England" 5; "Portugal" "Angola" 2; "Portugal" "Senegal" 1; "Portugal" "Morocco" 1; "Portugal" "South Africa" 3; "France" "Angola" 1; "France" "Senegal" 3; "France" "Mali" 3; "France" "Morocco" 3; "France" "South Africa" 1; "Spain" "Senegal" 1; "Spain" "Morocco" 3; "Spain" "South Africa" 1; "England" "Angola" 1; "England" "Senegal" 1; "England" "Morocco" 2; "England" "South Africa" 7; "South Africa" "China" 5; "South Africa" "India" 1; "South Africa" "Japan" 3; "Angola" "China" 5; "Angola" "India" 1; "Angola" "Japan" 3; "Senegal" "China" 5; "Senegal" "India" 1; "Senegal" "Japan" 3; "Mali" "China" 5; "Mali" "India" 1; "Mali" "Japan" 3; "Morocco" "China" 5; "Morocco" "India" 1; "Morocco" "Japan" 3) |
6 | ChordDiagramLinkColorScheme(3;0.18) |
7 | ChordDiagramLinkStyle(;"Japan";#81A94FAA) |
8 | |
9 | ChordDiagramNodeLabel(;auto;"{NODE_ID}";Arial;9;bold;white) |
10 |
Note that ChordDiagramLinkStyle() should be listed after the ChordDiagram() function. This rule generally applies: The ChordDiagram() function should always be listed first, before other chord functions are called.