✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Plot_ly library with R

I am trying to make a bar graph with plot_ly and then rendering it on the page using dccGraph(figure=that plot_ly object). The problem is that I want to have the information about all points shown when you hover over that data point on the graph. This works when I do plot_ly(data,x…,y…,type=‘scatter’, hoverinfo='all) but when i change the type to bar all the hoverinfo doesn’t work. It shows for 1 or 2 points but other than that the hoverinfo is very unresponsive. Any suggestions to make this hoverinfo work for bar charts?