Skip to content Skip to sidebar Skip to footer

What Is The Right Way To Change The Color Of A Tooltip In Bokeh Python?

Objective: To learn how to change the background color of Bokeh tooltip in Python. Below is the code that works for me, but I cannot seem to adjust the color within the tooltip (cu

Solution 1:

Based on Alex I successfully found a solution:

hover = HoverTool( tooltips="""

    <div style ="border-style: solid;border-width: 15px;background-color:black;">         
        <div>
            <span style="font-size: 12px; color: white;font-family:century gothic;">@height{0,000}</span>
            <span style="font-size: 12px; color: white;font-family:century gothic;"> Observations</span>
        </div>
    </div>

Post a Comment for "What Is The Right Way To Change The Color Of A Tooltip In Bokeh Python?"