MCPcopy Create free account
hub / github.com/leeoniya/uPlot / _init

Function _init

src/uPlot.js:3460–3474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3458 self.destroy = destroy;
3459
3460 function _init() {
3461 fire("init", opts, data);
3462
3463 setData(data || opts.data, false);
3464
3465 if (pendScales[xScaleKey])
3466 setScale(xScaleKey, pendScales[xScaleKey]);
3467 else
3468 autoScaleX();
3469
3470 shouldSetSelect = select.show && (select.width > 0 || select.height > 0);
3471 shouldSetCursor = shouldSetLegend = true;
3472
3473 _setSize(opts.width, opts.height);
3474 }
3475
3476 series.forEach(initSeries);
3477

Callers 1

uPlotFunction · 0.85

Calls 5

fireFunction · 0.85
setDataFunction · 0.85
setScaleFunction · 0.85
autoScaleXFunction · 0.85
_setSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…