JavaScript & React libraryAPIEnumerationsCosmographLinkWidthStrategy

Enumeration: CosmographLinkWidthStrategy

Enumeration Members

Enumeration MemberValueDescription
Sum"sum"Uses the sum of numeric values between the same source and target points in linkWidthBy to determine link widths and interpolates them from linkWidthRange. - Has effect only if linkWidthBy provided and contains numeric data.
Average"average"Uses the average of numeric values between the same source and target points in linkWidthBy to determine link widths and interpolates them from linkWidthRange. - Has effect only if linkWidthBy provided and contains numeric data.
Count"count"Uses the count of links between the same source and target points in linkWidthBy to determine link widths and interpolates them from linkWidthRange.
Direct"direct"Directly uses linkWidthBy column values as widths. - Treats numeric values in linkWidthBy as link widths in pixels 1:1 without interpolation if they are numbers - If linkWidthByFn exists, applies it to transform linkWidthBy values into custom widths with it - Falls back to linkDefaultWidth if invalid width - If neither CosmographConfig.linkWidthBy nor CosmographConfig.linkWidthByFn exist, sets all links width to linkDefaultWidth
Single"single"Sets all links width to the same value specified by linkDefaultWidth.