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

Method init

src/scales/scale.category.js:56–68  ·  view source on GitHub ↗
(scaleOptions)

Source from the content-addressed store, hash-verified

54 }
55
56 init(scaleOptions) {
57 const added = this._addedLabels;
58 if (added.length) {
59 const labels = this.getLabels();
60 for (const {index, label} of added) {
61 if (labels[index] === label) {
62 labels.splice(index, 1);
63 }
64 }
65 this._addedLabels = [];
66 }
67 super.init(scaleOptions);
68 }
69
70 parse(raw, index) {
71 if (isNullOrUndef(raw)) {

Callers

nothing calls this directly

Calls 2

getLabelsMethod · 0.65
initMethod · 0.65

Tested by

no test coverage detected