I have a method, in which a piechart is created:
def create_piechart(self): series = QPieSeries() series.append("0 - 10 years", 0.5)