I have created the chart using pychart but the output is coming in the form of pdf/png/ps etc .. but i need these chart should come into the excel sheet. what is the way to extract this chart to worksheet.
from pychart import *
import sys
def to_percents(data):
total = float(sum(v for _, v in data))
data[:] = [(k, v / total) for k, v in data]
return data
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],
shadow = (0, 0, fill_style.gray50),
label_offset = 25,
arrow_style = arrow.a3)
ar.add_plot(plot)
ar.draw()