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

Method render

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

Source from the content-addressed store, hash-verified

24
25export class Bars extends Mark {
26 async render() {
27 const base_creation_promise = super.render.apply(this);
28
29 // Two scales to draw the bars.
30 this.stackedScale = d3.scaleBand();
31 this.groupedScale = d3.scaleBand();
32
33 this.selected_indices = this.model.get('selected');
34 this.selected_style = this.model.get('selected_style');
35 this.unselected_style = this.model.get('unselected_style');
36
37 this.display_el_classes = ['bar', 'legendtext'];
38
39 this.displayed.then(() => {
40 this.parent.tooltip_div.node().appendChild(this.tooltip_div.node());
41 this.create_tooltip();
42 });
43
44 await base_creation_promise;
45
46 this.event_listeners = {};
47 this.process_interactions();
48 this.create_listeners();
49 this.compute_view_padding();
50 this.draw(false);
51 }
52
53 private setScaleOrientation(): void {
54 // TODO: we should probably use this.model.get("orientation")?

Callers

nothing calls this directly

Calls 3

create_listenersMethod · 0.95
compute_view_paddingMethod · 0.95
drawMethod · 0.95

Tested by

no test coverage detected