2017-09-24 107 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(类别列表引用这个你策划类,...)