MCPcopy Create free account
hub / github.com/chartjs/Chart.js / beforeDatasetsUpdate

Method beforeDatasetsUpdate

src/types/index.d.ts:953–953  ·  view source on GitHub ↗

* @desc Called before updating the `chart` datasets. If any plugin returns `false`, * the datasets update is cancelled until another `update` is triggered. * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @param {UpdateMode} args.mode - The upda

(chart: Chart<TType>, args: { mode: UpdateMode }, options: O)

Source from the content-addressed store, hash-verified

951 * @since version 2.1.5
952 */
953 beforeDatasetsUpdate?(chart: Chart<TType>, args: { mode: UpdateMode }, options: O): boolean | void;
954 /**
955 * @desc Called after the `chart` datasets have been updated. Note that this hook
956 * will not be called if the datasets update has been previously cancelled.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected