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

Method beforeLayout

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

* @desc Called before laying out `chart`. If any plugin returns `false`, * the layout update is cancelled until another `update` is triggered. * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @param {object} options - The plugin options. * @r

(chart: Chart<TType>, args: { cancelable: true }, options: O)

Source from the content-addressed store, hash-verified

958 * @returns {boolean} `false` to cancel the chart layout.
959 */
960 beforeLayout?(chart: Chart<TType>, args: { cancelable: true }, options: O): boolean | void;
961 /**
962 * @desc Called before scale data limits are calculated. This hook is called separately for each scale in the chart.
963 * @param {Chart} chart - The chart instance.

Callers 2

updateFunction · 0.65
beforeLayoutMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected