Skip to content

Function: d3pZoomAxis() ​

ts
function d3pZoomAxis(
   axis, 
   chart, 
   position, 
   magnification
): void;

Defined in: core/tools/zoom.ts:14

Zoom axis around the position position (range units) of chart. magnification > 1 zooms in (the visible span shrinks), < 1 zooms out. Computed in pixel space then inverted, so log/time scales work.

Parameters ​

axis ​

D3PAxis

chart ​

D3PChart

position ​

number

magnification ​

number

Returns ​

void