'@todo: docstring'

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
