Hi Team,
Please help with this issue.
I’m trying to create a Box Plot with outliers and with Hover tools. The issue i’m facing is explained through the below code snippet
My code looks like this,
columns = ['A','B','C']
df = pd.DataFrame(tickets, columns=columns)
fig = BoxPlot(df, values='A', label='B',
color='B', xlabel='A Axis Label', ylabel='B Axis Label', plot_width=700,tools=TOOLS)
#Add tool tip
hover = HoverTool()
hover.tooltips = [
(“C Value”, “@C”)
]
fig.add_tools(hover)
Basically I want the tool tip to show value of column ‘C’ on hover.
But the value is not getting displayed. It is coming as ‘???’
What I found is if I give the column mentioned in ‘label’, in my case column ‘B’ for the tool tip , it works
This works
hover.tooltips = [
(“B Value”, “@B”)
]
I tried using ColumnDataSource etc. But none of the options worked.
What is that I’m doing wrong here. Anyone faced similar issue.
Please suggest.
Regards
Chandra
