Interface Line

Index

Call signatures

Properties

Call signatures

(data: Array<any>, index?: number): string

Returns the path data string

Parameters

  • data: Array<any>

    Array of data elements

  • index?: number optional

    Optional index

Returns

string

Properties

public defined: { (): (data: any, index?: number) => boolean; (defined: (data: any) => boolean): D3.Svg.Line; }

Control whether the line is defined at a given point.

(): (data: any, index?: number) => boolean

Get the accessor function that controls where the line is defined.

Returns

(data: any, index?: number) => boolean

(): Line

Set the accessor function that controls where the area is defined.

Returns

Line

public interpolate: { (): string; (interpolate: string): D3.Svg.Line; }

Get or set the interpolation mode.

(): string

Get the interpolation accessor.

Returns

string

(): Line

Set the interpolation accessor.

Returns

Line

public tension: { (): number; (tension: number): D3.Svg.Line; }

Get or set the cardinal spline tension.

(): number

Get the cardinal spline accessor.

Returns

number

(): Line

Set the cardinal spline accessor.

Returns

Line

public x: { (): (data: any, index?: number) => number; (accessor: (data: any) => number): D3.Svg.Line; (accessor: (data: any, index: number) => number): D3.Svg.Line; (cnst: number): D3.Svg.Line; }

Get or set the x-coordinate accessor.

(): (data: any, index?: number) => number

Get the x-coordinate accessor.

Returns

(data: any, index?: number) => number

(): Line

Set the x-coordinate accessor.

Returns

Line

(): Line

Returns

Line

(): Line

Set the x-coordinate to a constant.

Returns

Line

public y: { (): (data: any, index?: number) => number; (accessor: (data: any) => number): D3.Svg.Line; (accessor: (data: any, index: number) => number): D3.Svg.Line; (cnst: number): D3.Svg.Line; }

Get or set the y-coordinate accessor.

(): (data: any, index?: number) => number

Get the y-coordinate accessor.

Returns

(data: any, index?: number) => number

(): Line

Set the y-coordinate accessor.

Returns

Line

(): Line

Returns

Line

(): Line

Set the y-coordinate to a constant.

Returns

Line