Skip to content

Class: D3PViewportPoint ​

Defined in: core/projection.ts:16

A point of the viewport: a pixel of the inner area of chart.

Constructors ​

Constructor ​

ts
new D3PViewportPoint(
   chart, 
   x, 
   y
): D3PViewportPoint;

Defined in: core/projection.ts:17

Parameters ​

chart ​

D3PChart

The chart the point is on.

x ​

number

X in pixels, in the plot.

y ​

number

Y in pixels, in the plot.

Returns ​

D3PViewportPoint

Properties ​

chart ​

ts
readonly chart: D3PChart;

Defined in: core/projection.ts:19

The chart the point is on.


x ​

ts
readonly x: number;

Defined in: core/projection.ts:21

X in pixels, in the plot.


y ​

ts
readonly y: number;

Defined in: core/projection.ts:23

Y in pixels, in the plot.