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

Method updateColor

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

Source from the content-addressed store, hash-verified

110 }
111
112 private updateColor() {
113 if (!this.mark_data) {
114 return;
115 }
116
117 const color = this.get('color');
118 const color_scale = this.getScales().color;
119
120 if (color_scale) {
121 if (!this.get('preserve_domain').color) {
122 color_scale.computeAndSetDomain(color, this.model_id + '_color');
123 } else {
124 color_scale.delDomain([], this.model_id + '_color');
125 }
126 }
127 }
128
129 update_domains() {
130 if (!this.mark_data) {

Callers 2

initializeMethod · 0.95
update_dataMethod · 0.95

Calls 1

getScalesMethod · 0.45

Tested by

no test coverage detected