Interface: GraphInput
Defined in: plot.ts:144
Options for Plot.addGraph. Positions are optional — omit them (give nodes) to auto-lay-out.
Extends
Omit<GraphOptions,"x"|"y">
Properties
edgeColor?
ts
optional edgeColor?: string | Color;Defined in: layers/graph.ts:17
Inherited from
edges
ts
edges: readonly readonly [number, number][];Defined in: layers/graph.ts:13
Edges as index pairs into the node arrays.
Inherited from
name?
ts
optional name?: string;Defined in: layers/graph.ts:20
Inherited from
nodeColor?
ts
optional nodeColor?: string | Color;Defined in: layers/graph.ts:14
Inherited from
nodes?
ts
optional nodes?: number;Defined in: plot.ts:148
Node count when x/y are omitted (else inferred from the max edge index).
nodeSize?
ts
optional nodeSize?: number;Defined in: layers/graph.ts:16
Node diameter in CSS pixels. Default 10.
Inherited from
renderType?
ts
optional renderType?: RenderType;Defined in: layers/graph.ts:19
Buffer-usage hint; set "dynamic" when streaming via setData. Default "static".
Inherited from
x?
ts
optional x?: ArrayLike<number>;Defined in: plot.ts:145
y?
ts
optional y?: ArrayLike<number>;Defined in: plot.ts:146
yAxis?
ts
optional yAxis?: string;Defined in: layers/graph.ts:21