Home > Blockchain >  Conditional coloring in bokeh vbar plots
Conditional coloring in bokeh vbar plots

Time:04-26

Try to make a vbar plot with bokeh. Would like to set a condition for the fill color when the value exceeds a pre-set number. Say, red when greater than 5, else purple. Is this doable with bokeh?

Any demonstration would be greatly appreciated. My data is stored in a pandas dataframe.

CodePudding user response:

You can create a column in your DataFrame named color and pass this data to the keyword color in the function bar plot

  • Related