'Updates a chart url to display processed count for each shard.
Args:
shards_processed: list of integers with number of processed entities in
each shard'

def set_processed_counts(self, shards_processed):

    chart = google_chart_api.BarChart(shards_processed)
    if (self.mapreduce_spec and shards_processed):
        chart.bottom.labels = [str(x) for x in xrange(self.mapreduce_spec.mapper.shard_count)]
        chart.left.labels = ['0', str(max(shards_processed))]
        chart.left.min = 0
    self.chart_url = chart.display.Url(300, 200)
