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

Method _sync

src/core/core.datasetController.js:1041–1049  ·  view source on GitHub ↗

* @private

(args)

Source from the content-addressed store, hash-verified

1039 * @private
1040 */
1041 _sync(args) {
1042 if (this._parsing) {
1043 this._syncList.push(args);
1044 } else {
1045 const [method, arg1, arg2] = args;
1046 this[method](arg1, arg2);
1047 }
1048 this.chart._dataChanges.push([this.index, ...args]);
1049 }
1050
1051 _onDataPush() {
1052 const count = arguments.length;

Callers 5

_onDataPushMethod · 0.95
_onDataPopMethod · 0.95
_onDataShiftMethod · 0.95
_onDataSpliceMethod · 0.95
_onDataUnshiftMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected