Bokeh Bar plot |
问题 I am trying to Create a bokeh bar chart using Python. The data2 is the values from bokeh.plotting import figure, output_file, show,hplot from bokeh.charts import Bar data2=[65.75, 48.400000000000006, 58.183333333333337, 14.516666666666666] bar = Bar(values=data2,xlabel="beef,pork,fowl,fish",ylabel="Avg consumtion", width=400) show(bar) Error TypeError: Bar() takes at least 1 argument (1 given) What am I doing wrong Here? 回答1: The bokeh.charts API (including Bar ) was deprecated and removed