()
| 24 | |
| 25 | export 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")? |
nothing calls this directly
no test coverage detected