ChordDiagramNodeStyle

New in version 5.0.11

ChordDiagramNodeStyle ( nodeID ;​ fillColor ;​ fillColorVariant ;​ borderStroke ;​ borderColor ;​ borderColorVariant )

Argument Type Range Default Note
nodeID str 0..1000
fillColor rgba 0..255 #888
fillColorVariant int -1..0 0
borderStroke num[] 0..1000 0 Dimension:[pt]
borderColor rgba 0..255 black
borderColorVariant int -1..0 0
Examples

ChordDiagramNodeStyle(;​darkGreen;​shaded)

ChordDiagramNodeStyle(;​teal;​;​1;​green)

ChordDiagramNodeStyle("A";​red;​solid;​1;​gray)

Description

The ChordDiagramNodeStyle() function can be used to control the appearance of individual nodes. The first argument nodeID specifies the node to which the function is applied. If the nodeID argument is empty, the function is applied to all nodes. The appearance can be varied using the arguments fillColor, fillColorVariant, borderStroke, borderColor and borderColorVariant.

CHORD_DIAGRAM_NODE_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

ChordDiagramNodeStyle(;​darkRed)

5

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

6

CloseDrawing()

CHORD_DIAGRAM_NODE_STYLE_01
CHORD_DIAGRAM_NODE_STYLE_02
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

ChordDiagramNodeStyle("";​#c005;​)

5

ChordDiagramNodeStyle("A";​red)

6

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

7

CloseDrawing()

CHORD_DIAGRAM_NODE_STYLE_02

The ChordDiagramNodeColorScheme() function can be customized by using the corresponding ChordDiagramNodeStyle() function. The color scheme function should be listed before the style function(s).

CHORD_DIAGRAM_NODE_STYLE_03
1

OpenDrawing(600;​450)

2

ChordDiagram(label;​5%;​0.5%;​3) /* 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

ChordDiagramNodeColorScheme(5;​solid;​0.7;​1;​lightGray)

7

ChordDiagramNodeStyle("China";​lime;​solid;​1;​lightGray) /* After ChordDiagramNodeColorScheme() */

8

ChordDiagramNodeStyle("Japan";​lime;​solid;​1;​lightGray) /* After ChordDiagramNodeColorScheme() */

9

ChordDiagramNodeStyle("India";​lime;​solid;​1;​lightGray) /* After ChordDiagramNodeColorScheme() */

10

ChordDiagramNodeStyle("Mali";​lime;​solid;​1;​lightGray) /* After ChordDiagramNodeColorScheme() */

11

ChordDiagramNodeStyle("South Africa";​lime;​solid;​1;​lightGray) /* After ChordDiagramNodeColorScheme() */

12

ChordDiagramNodeStyle("Morocco";​lime;​solid;​1;​lightGray) /* After ChordDiagramNodeColorScheme() */

13

ChordDiagramNodeStyle("Senegal";​lime;​solid;​1;​lightGray) /* After ChordDiagramNodeColorScheme() */

14

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

15

CloseDrawing()

CHORD_DIAGRAM_NODE_STYLE_03

Note that ChordDiagramNodeStyle() 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.

Scroll to Top