2017-09-24 102 views
0

我試圖建立一個散景條形圖和我的數據源(df_fac)就像是以下幾點:散景條形圖不顯示正確

enter image description here

到目前爲止我的代碼:

# source 
source2 = ColumnDataSource(df_fac) 


# Bar chart 
bar = figure(plot_width=600, plot_height=600, 
      x_axis_label='Faculty', 
      y_axis_label='Number of invoice processed & paid', 
      tools=['save', 'reset']) 

bar.vbar(x='FACULTY', bottom=0, top='PAPER', width=50, color='STEELBLUE', source=source2) 

reset_output() 
show(bar) 

但是我的輸出是這樣的:

enter image description here

我的散景版是0.12.7。我試圖在Chrome和IE瀏覽器中查看輸出結果,但沒有成功。提前致謝。

回答

1

如果你需要在你的身材(x_range(類別列表引用這個你策劃類,...)