Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I’m experiencing an issue with the Network chart from the Qlik Visualization bundle.
On the Qlik Help page for the Network chart, it shows that it's possible to assign colors to nodes and edges. I created a table using the same names and data types (integer and string) as the example provided. However, when I select my field Group in 'Node Group', all the edges and nodes turn black, as shown in the screenshot.
Additionally, when I display the Edge Value (Appearance > Presentation > Display Edge Value), two or three nodes retain black edges, while the rest turn white. The rings on the Nodes all turn white aswell while the inner part stays black. My Group is based on individual nodes; the change to white is not a group that I created.
The only difference from the example is that I have my volume for the edges stored per row (rather than bundled together). I use this format to facilitate selection, and I can't change it.
This is how my table is build:
| ID | Name | Link to | Group | Volume |
| 1 | A | 2 | 1 | 1 |
| 2 | B | 1 | 2 | 1 |
| 2 | B | 3 | 2 | 1 |
| 1 | A | 2 | 1 | 1 |
This is how the example shows it:
| ID | Name | Link to | Group | Volume |
| 1 | A | 2 | 1 | 2 |
| 2 | B | 1 | 2 | 1 |
| 2 | B | 3 | 2 | 1 |
My question is: how can I ensure the colors I assigned to the nodes are applied correctly?
I’ve already created a Master Item for the colors and tried several approaches, but I can’t seem to figure it out.
There is also an option of color by expression in Sorting, as mentioned in on Qlik Help, but i also can't seem to figure that one out.
Thanks for your help!
Try this
Use "Color by Expression" (Sorting → Color by expression)
If you must use the raw row-level data without aggregation:
Expression for Node Color
Pick(
Group,
RGB(31, 119, 180),
RGB(255, 127, 14),
RGB(44, 160, 44),
RGB(214, 39, 40),
RGB(148, 103, 189)
)