This seems like a very easy thing to do but I am unsure what I'm missing. All I'm trying to do is add a title to my plotly chart.
from plotly.graph_objs import Bar
tuesday_plot_div = plot([Bar(title="Tuesday Data", x=['Win', "Lose"], y=[len(tuesday_wins), len(tuesday_losses)],
opacity=0.8)],
output_type='div')
I receive an error in the editor
Expected type "dict", got "str" instead
When I try to display that in my html
Invalid property specified for object of type plotly.graph_objs.Bar: 'title'