@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? ​
readonlyoptionaldirection?:"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? ​
readonlyoptionaldistribution?: readonlyobject[]
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? ​
readonlyoptionalgraphMean?: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? ​
readonlyoptionalmax?:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:136
The highest value across the selected nodes.
mean? ​
readonlyoptionalmean?:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:130
The average across the selected nodes that carry a number.
median? ​
readonlyoptionalmedian?:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:132
The middle value across the selected nodes that carry a number.
min? ​
readonlyoptionalmin?:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:134
The lowest value across the selected nodes.
path ​
readonlypath:string
Defined in: graphty-element/src/session/selection/SelectionApi.ts:126
The attribute's published path, such as "data.department".
plainName ​
readonlyplainName:string
Defined in: graphty-element/src/session/selection/SelectionApi.ts:128
What to call it in front of a person.