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

Method set_x_range

js/src/Bars.ts:870–880  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

868 }
869
870 private set_x_range(): [number, number] {
871 const domScale = this.domScale;
872 if (isOrdinalScale(domScale)) {
873 return domScale.scale.range() as [number, number];
874 } else {
875 return [
876 domScale.scale(d3.min(this.stackedScale.domain())),
877 domScale.scale(d3.max(this.stackedScale.domain())),
878 ];
879 }
880 }
881
882 private bar_click_handler(args) {
883 const index = args.index;

Callers 3

updateInternalScalesMethod · 0.95
relayoutMethod · 0.80
create_scalesFunction · 0.80

Calls 1

rangeMethod · 0.80

Tested by

no test coverage detected