(cherry picked from commit 42d1a0f32e)
Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
This commit is contained in:
co-authored by
Victor Marin
parent
e13cd9f676
commit
d246e600b8
@@ -166,11 +166,13 @@ export default function GraphTooltip(this: any, elem: any, dashboard: any, scope
|
||||
self.show(pos, item);
|
||||
|
||||
// broadcast to other graph panels that we are hovering!
|
||||
pos.panelRelY = (pos.pageY - elem.offset().top) / elem.height();
|
||||
hoverEvent.payload.pos = pos;
|
||||
hoverEvent.payload.panel = panel;
|
||||
hoverEvent.payload.point['time'] = (pos as any).x;
|
||||
dashboard.events.publish(hoverEvent);
|
||||
if (!dashboard.panelInEdit) {
|
||||
pos.panelRelY = (pos.pageY - elem.offset().top) / elem.height();
|
||||
hoverEvent.payload.pos = pos;
|
||||
hoverEvent.payload.panel = panel;
|
||||
hoverEvent.payload.point['time'] = (pos as any).x;
|
||||
dashboard.events.publish(hoverEvent);
|
||||
}
|
||||
});
|
||||
|
||||
elem.bind('plotclick', (event: any, pos: any, item: any) => {
|
||||
|
||||
Reference in New Issue
Block a user