Skip to content

Interface: GraphInput

Defined in: plot.ts:144

Options for Plot.addGraph. Positions are optional — omit them (give nodes) to auto-lay-out.

Extends

Properties

edgeColor?

ts
optional edgeColor?: string | Color;

Defined in: layers/graph.ts:17

Inherited from

GraphOptions.edgeColor


edges

ts
edges: readonly readonly [number, number][];

Defined in: layers/graph.ts:13

Edges as index pairs into the node arrays.

Inherited from

GraphOptions.edges


name?

ts
optional name?: string;

Defined in: layers/graph.ts:20

Inherited from

GraphOptions.name


nodeColor?

ts
optional nodeColor?: string | Color;

Defined in: layers/graph.ts:14

Inherited from

GraphOptions.nodeColor


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

GraphOptions.nodeSize


renderType?

ts
optional renderType?: RenderType;

Defined in: layers/graph.ts:19

Buffer-usage hint; set "dynamic" when streaming via setData. Default "static".

Inherited from

GraphOptions.renderType


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

Inherited from

GraphOptions.yAxis

MIT licensed. WebGL2 required.