I created a bar chart using bokeh python. Now, I add tooltip over bars.
When I use numeric value in x_axis_column. It doesn’t show tooltip.
But when I use string value in x_axis_column, it shows tooltip properly.
from bokeh.charts import Bar, output_file, show import pandas as pd df = pd.read_csv("bar.csv") x_axis_column = "x" plot = Bar(df, values='count', label=x_axis_column,legend=False, tooltips=[('count', '@height')], color="red") output_file("bar.html") show(plot)
Where, x_axis_column is integer type, tooltip doesn’t work but when I use x_axis_column values as string data type, then tooltip works.
P.S. You can view the same question on Stackoverflow.
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.