MCPcopy
hub / github.com/chartjs/Chart.js / _onDataSplice

Method _onDataSplice

src/core/core.datasetController.js:1064–1072  ·  view source on GitHub ↗
(start, count)

Source from the content-addressed store, hash-verified

1062 }
1063
1064 _onDataSplice(start, count) {
1065 if (count) {
1066 this._sync(['_removeElements', start, count]);
1067 }
1068 const newCount = arguments.length - 2;
1069 if (newCount) {
1070 this._sync(['_insertElements', start, newCount]);
1071 }
1072 }
1073
1074 _onDataUnshift() {
1075 this._sync(['_insertElements', 0, arguments.length]);

Callers

nothing calls this directly

Calls 1

_syncMethod · 0.95

Tested by

no test coverage detected