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

Function configure

src/core/core.layouts.js:331–335  ·  view source on GitHub ↗

* Sets (or updates) options on the given `item`. * @param {Chart} chart - the chart in which the item lives (or will be added to) * @param {LayoutItem} item - the item to configure with the given options * @param {object} options - the new item options.

(chart, item, options)

Source from the content-addressed store, hash-verified

329 * @param {object} options - the new item options.
330 */
331 configure(chart, item, options) {
332 item.fullSize = options.fullSize;
333 item.position = options.position;
334 item.weight = options.weight;
335 },
336
337 /**
338 * Fits boxes of the given chart into the given size by having each box measure itself

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected