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