-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot tooltips #369
Comments
In cuxfilter, for bar and line charts, the Here is a snippet to add hover options to the bar chart: import cudf
import cuxfilter
from bokeh.models import HoverTool
cux_df = cuxfilter.DataFrame.from_dataframe(cudf.DataFrame({'key': [0, 1, 2, 3, 4], 'val':[float(i + 10) for i in range(5)]}))
bar_chart_1 = cuxfilter.charts.bar('key', 'val', data_points=5, add_interaction=False)
d = cux_df.dashboard([bar_chart_1])
#add tools
bar_chart_1.chart.add_tools(HoverTool(tooltips=[
("index", "$index"),
("(x,y)", "($x, $y)")
]))
bar_chart_1.view() |
@AjayThorve Keep this issue open for now - I think this would be a good addition into the docs. |
This issue has been labeled |
This issue has been labeled |
How to add plot tooltips, since it is a parameter of figure and not an extra parameter of the plot (as bar and line)?
Here an example from Bokeh documentation.
The text was updated successfully, but these errors were encountered: