English
Function: d3pNormalizeSeries()
ts
function d3pNormalizeSeries(data, spec?): D3PPoint[];Defined in: core/series.ts:72
Normalize the accepted inputs to points [x, primary, ...others].
- numbers (
[3, 5, 2], typed arrays):xis the index (two columns only); - positional rows (
[[x, a, b], ...]): columns in the order ofspec.columns; - object rows (
[{ x, y }], or other keys / accessors throughspec.fields); - column-oriented data (
{ x: [...], y: [...] }); - any iterable of those.
The format is detected on the first row. Object rows lacking x or the primary value are dropped; other missing columns become NaN.
Parameters
data
unknown
spec?
D3PColumnSpec = {}
Returns
D3PPoint[]