pypdflite/pdfdocument.py
def add_pie_chart(self, data, cursor, width, height, title=None, data_type="raw", fill_colors=None, labels=False, background=None, legend=None):
        """ Data type may be "raw" or "percent" """
        save_draw_color = self.draw_color
        save_fill_color = self.fill_color

        chart = PDFPieChart(self.session, self.page, data, cursor, width, height, title, data_type, fill_colors, labels, background, legend)

        self.set_draw_color(save_draw_color)
        self.set_fill_color(save_fill_color)
def add_pie_chart(self, data, cursor, width, height, title=None, data_type="raw", fill_colors=None, labels=False, background=None, legend=None):
        save_draw_color = self.draw_color
        save_fill_color = self.fill_color

        chart = PDFPieChart(self.session, self.page, data, cursor, width, height, title, data_type, fill_colors, labels, background, legend)

        self.set_draw_color(save_draw_color)
        self.set_fill_color(save_fill_color)
def add_pie_chart ( self , data , cursor , width , height , title = None , data_type = "raw" , fill_colors = None , labels = False , background = None , legend = None ) : save_draw_color = self . draw_color save_fill_color = self . fill_color chart = PDFPieChart ( self . session , self . page , data , cursor , width , height , title , data_type , fill_colors , labels , background , legend ) self . set_draw_color ( save_draw_color ) self . set_fill_color ( save_fill_color )
Data type may be "raw" or "percent"
Data type may be raw or percent