Skip to content
Advertisement

Bokeh Candlestick Chart with OHLCV values as tooltip or/and lable

How do you get a tool tip on Bokeh candlestick chart like this:

Tooltip on Candle Bar

or/and a lable like this:

Bar Information Labels


The code I have so far for drawing the chart is as follows:

JavaScript

Advertisement

Answer

Your Bokeh Candlesticks consists of two glyphs: vbar and segment. In the code below there is only a tooltip on the vbar but you could add it also to the segment (code made for Bokeh v2.1.1) I also left out irrelevant code to make the code look simpler.

JavaScript

Result: enter image description here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement