MCPcopy Index your code
hub / github.com/bqplot/bqplot / updateLabels

Method updateLabels

js/src/PieModel.ts:100–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 private updateLabels() {
101 if (!this.mark_data) {
102 return;
103 }
104
105 const labels = this.get('labels');
106 this.mark_data.forEach((data, index) => {
107 data.label = labels[index] == null ? '' : labels[index];
108 });
109 this.trigger('labels_updated');
110 }
111
112 private updateColor() {
113 if (!this.mark_data) {

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected