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

Function refresh_tooltip

js/src/Mark.ts:369–380  ·  view source on GitHub ↗
(tooltip_interactions = false)

Source from the content-addressed store, hash-verified

367 }
368
369 refresh_tooltip(tooltip_interactions = false) {
370 //the argument controls pointer interactions with the tooltip. a
371 //true value enables pointer interactions while a false value
372 //disables them
373 const el = d3.select(d3GetEvent().target);
374 if (this.is_hover_element(el)) {
375 const data: any = el.data()[0];
376 const clicked_data = this.model.get_data_dict(data, data.index);
377 this.trigger('update_tooltip', clicked_data);
378 this.show_tooltip(tooltip_interactions);
379 }
380 }
381
382 create_tooltip() {
383 //create tooltip widget. To be called after mark has been displayed

Callers

nothing calls this directly

Calls 3

d3GetEventFunction · 0.90
show_tooltipMethod · 0.80
get_data_dictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…