求助,为什么这个代码运行后老是no data
import pygalfrom pygal.style import LightColorizedStyle as LCS,LightenStyle as LS
my_style=LS('#333366',base_style=LCS)
chart=pygal.Bar(style=my_style,x_label_rotation=45,show_legend=False)
chart.title='Python Projects'
chart.x_labels=['httpis','django','flask']
plot_dicts=[
{'Value':16101,'label':'Description of httpie.'},
{'Value':15028,'label':'Description of django.'},
{'Value':14798,'label':'Description of flask.'},
]
chart.add('',plot_dicts)
chart.render_to_file('bar_descriptions.svg') 把'Value'改成'value'。 已解决,十分感谢!
页:
[1]