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

Method set_axisline_domain

js/src/ColorAxis.ts:503–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501 }
502
503 set_axisline_domain() {
504 const domain = this.axis_scale.scale.domain();
505 if (this.ordinal) {
506 this.axis_line_scale.domain(domain);
507 } else {
508 const mid = this.axis_scale.model.mid;
509 if (mid === undefined || mid === null) {
510 this.axis_line_scale.domain([domain[0], domain[domain.length - 1]]);
511 } else {
512 this.axis_line_scale.domain([
513 domain[0],
514 mid,
515 domain[domain.length - 1],
516 ]);
517 }
518 }
519 }
520
521 redraw_axis() {
522 this.draw_color_bar();

Callers 2

append_axisMethod · 0.95
redraw_axislineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected