MCPcopy Create free account
hub / github.com/bqplot/bqplot / update_labels

Method update_labels

js/src/LinesModel.ts:130–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 }
129
130 update_labels() {
131 // update the names in mark_data
132 const labels = this.get_labels();
133 this.mark_data.forEach((element, i) => {
134 element.name = labels[i];
135 });
136 this.trigger('labels_updated');
137 }
138
139 get_labels() {
140 // Function to set the labels appropriately.

Callers

nothing calls this directly

Calls 1

get_labelsMethod · 0.95

Tested by

no test coverage detected