def drawChart(self,
                  series_id,
                  output="xml",
                  data=None,
                  label=None,
                  xLabel=None,
                  yLabel=None):

        chartFile = self.getChartName(series_id)
        cached = S3Chart.getCachedFile(chartFile)
        if cached:
            return cached

        chart = S3Chart(path=chartFile)
        data = []
        label = []
        for (key, value) in self.list.items():
            data.append(value)
            label.append(key)
        chart.survey_pie(self.qstnWidget.question.name,
                         data,
                         label)
        image = chart.draw(output=output)
        return image

# =============================================================================
@todo: docstring
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3OptionAnalysis.drawChart