Skip to content

@graphty/graphty-element / session / SelectionAttributeStatistics

Interface: SelectionAttributeStatistics ​

Defined in: graphty-element/src/session/selection/SelectionApi.ts:124

One attribute of the selected nodes, summarised against the same attribute across the graph.

Properties ​

direction? ​

readonly optional direction?: "above" | "below" | "equal"

Defined in: graphty-element/src/session/selection/SelectionApi.ts:146

Whether the selection sits above, below or exactly on the graph's average.


distribution? ​

readonly optional distribution?: readonly object[]

Defined in: graphty-element/src/session/selection/SelectionApi.ts:142

How the selected nodes divide between the values of a non-numeric attribute, commonest first. Absent for a numeric attribute, and for one with more distinct values than a legend could hold.


graphMean? ​

readonly optional graphMean?: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:144

The same average across every node in the graph, so the selection can be compared to it.


max? ​

readonly optional max?: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:136

The highest value across the selected nodes.


mean? ​

readonly optional mean?: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:130

The average across the selected nodes that carry a number.


median? ​

readonly optional median?: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:132

The middle value across the selected nodes that carry a number.


min? ​

readonly optional min?: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:134

The lowest value across the selected nodes.


path ​

readonly path: string

Defined in: graphty-element/src/session/selection/SelectionApi.ts:126

The attribute's published path, such as "data.department".


plainName ​

readonly plainName: string

Defined in: graphty-element/src/session/selection/SelectionApi.ts:128

What to call it in front of a person.