Search code examples
hoverbokehinteractivescientific-notation

Disable scientific notation in hover tool Bokeh


It seems like there are plenty of answers on how to disable the scientific notation in Bokeh on numbers displayed on x and y axis. But how about disabling it for the hover tool?


Solution

  • Found it, at least for my particular case it was sufficient to force the hover tool to read it as an integer:

    hover.tooltips = [("Date", "@Date"),  ("Volume", "@z{int}")]