Esempio n. 1
0
    def getNewPie(self, span):

        #get the data from the DB
        data = SQLclient.getNewPieData(self.cursor, span)

        #format the data for Highcharts
        pie_gogn = Plotter.prepare_pie(data)
        return pie_gogn