2015-10-16 42 views

回答

5

这里是我用来做与pygal单杠:

bar_chart = pygal.HorizontalBar(show_legend=False) 
bar_chart.title = "Title" 
bar_chart.add("", [1, 4, 6, 7, 2, 3]) 
bar_chart.x_labels = ("the", "quick", "brown", "fox", "jumps", "over") 

它产生这样的曲线图: pygal horizontal example

+0

我怎样才能使不同颜色的每个标签,而不是一个如图所示? –

+0

你有没有试过http://www.pygal.org/en/stable/documentation/configuration/value.html?highlight=color? – Remco

相关问题