Data tooltips in Bokeh don’t show data, showing ‘???’ instead

I was having the same problem. I found this reference useful. The tooltip for Sales would use the generic @height, e.g.: hover.tooltips = [(‘Sales’, ‘@height’)] Similarly, replacing @height with @y would give you the total sales for each year. I haven’t figured out how to use the tooltip to access the stacked categories or how … Read more

Reverse stacked bar order

The release notes of ggplot2 version 2.2.0 on Stacking bars suggest: If you want to stack in the opposite order, try forcats::fct_rev() library(ggplot2) # version 2.2.1 used plot_df <- data.frame(group = rep(1:4, 6), levels = factor(c(rep(1:5, each = 4), rep(1, 4)))) ggplot(plot_df, aes(group, fill = forcats::fct_rev(levels))) + geom_bar(position = “fill”) This is the original plot: … Read more