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

Method update_label

js/src/Axis.ts:542–557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

540 }
541
542 update_label() {
543 this.g_axisline.select('text.axislabel').text(this.model.get('label'));
544 this.d3el.selectAll('.axislabel').selectAll('text');
545 if (
546 this.model.get('label_color') !== '' &&
547 this.model.get('label_color') !== null
548 ) {
549 this.g_axisline
550 .select('text.axislabel')
551 .style('fill', this.model.get('label_color'));
552 this.d3el
553 .selectAll('.axislabel')
554 .selectAll('text')
555 .style('fill', this.model.get('label_color'));
556 }
557 }
558
559 update_label_location() {
560 const axisLabel = this.g_axisline.select('text.axislabel');

Callers 1

append_axisMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected