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.
Code:
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.
Thanks,
Nitin
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.
I am afraid I have more bad news for you, the bokeh.charts API has been recently removed to a separate repo and project project. This is because the original people that created bokeh.charts no longer work on it, and it is effectively unmaintained at this point. There is another very high level library built on top of Bokeh that is maintained by an active team, called Holoviews: http://holoviews.org We will have more to say about Holoviews+Bokeh in the near future (there will be a vey big new release of HV next week) but I would encourage looking at it, before looking at bkcharts.
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.
Thanks,
Nitin
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.
On Jun 9, 2017, at 08:06, Bryan Van de ven <[email protected]> wrote:
Hi,
I am afraid I have more bad news for you, the bokeh.charts API has been recently removed to a separate repo and project project. This is because the original people that created bokeh.charts no longer work on it, and it is effectively unmaintained at this point. There is another very high level library built on top of Bokeh that is maintained by an active team, called Holoviews: http://holoviews.org We will have more to say about Holoviews+Bokeh in the near future (there will be a vey big new release of HV next week) but I would encourage looking at it, before looking at bkcharts.
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.
Thanks,
Nitin
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.