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

Method render

js/src/Hist.ts:25–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24export class Hist extends Mark {
25 async render() {
26 const base_creation_promise = super.render();
27
28 this.selected_indices = this.dataIndexToBarIndex(
29 this.model.get('selected')
30 );
31 this.selected_style = this.model.get('selected_style');
32 this.unselected_style = this.model.get('unselected_style');
33
34 this.display_el_classes = ['rect', 'legendtext'];
35
36 this.displayed.then(() => {
37 this.parent.tooltip_div.node().appendChild(this.tooltip_div.node());
38 this.create_tooltip();
39 });
40
41 await base_creation_promise;
42
43 this.event_listeners = {};
44 this.process_interactions();
45 this.create_listeners();
46 this.draw();
47 this.update_selected(this.model, this.model.get('selected'));
48 }
49
50 set_ranges() {
51 const x_scale = this.scales.sample;

Callers

nothing calls this directly

Calls 4

dataIndexToBarIndexMethod · 0.95
create_listenersMethod · 0.95
drawMethod · 0.95
update_selectedMethod · 0.95

Tested by

no test coverage detected