我正在使用 Python 中的PyChart库创建一个饼图。这是我的代码:
from pychart import *
import sys
data = [("foo", 10), ("bar", 20), ("baz", 30), ("ao", 40)]
theme.use_color = True
theme.get_options()
ar = area.T(size = (150, 150), legend = legend.T(),
x_grid_style = None, y_grid_style = None)
plot = pie_plot.T(data = data, arc_offsets = [0, 0, 0, 0], label_offset = 20, arrow_style = arrow.a3)
ar.add_plot(plot)
ar.draw()
如何在此饼图中以 (%) 显示数据?