Skip to content

autoTarget

autoTarget(dataLength, chartPixelWidth, ppx?): number

Defined in: perf/lttb.ts:159

Auto-choose target bucket count based on chart pixel width. Default: 2 points per pixel (retina-safe).

Parameters

dataLength

number

chartPixelWidth

number

ppx?

number = 2

Returns

number