Defines the ScatterInspector tool class.
A tool for inspecting scatter plots.
It writes the index of the point under the cursor to the metadata of the index and value data sources, and allows clicking to select the point. Other components can listen for metadata updates on the data sources.
By default, it writes the index of the point under the cursor to the “hover” key in metadata, and the index of a clicked point to “selection”.
This tool does not have a visual representation
The names of the data source metadata for hover events.
This tool emits events when hover or selection changes
Handles the mouse moving when the tool is in the ‘normal’ state.
If the cursor is within threshold of a data point, the method writes the index to the plot’s data sources’ “hover” metadata.
This method emits a ScatterInspectorEvent when a new scatter point is hovered over and when the mouse leaves that point.
If persistent_hover is False, then a point will be de-hovered as soon as the mouse leaves its hit-testing area. If persistent_hover is True, then a point does no de-hover until another point get hover focus.
The names of the data source metadata for selection events.
This tool is not visible