def _Params(self, chart):
    """Collect all the different params we need for the URL.  Collecting
    all params as a dict before converting to a URL makes testing easier.
    """
    chart = chart.GetFormattedChart()
    params = {}
    def Add(new_params):
      params.update(util.ShortenParameterNames(new_params))

    for formatter in self.formatters:
      Add(formatter(chart))

    for key in params:
      params[key] = str(params[key])
    return params
Collect all the different params we need for the URL.  Collecting
    all params as a dict before converting to a URL makes testing easier.
    
mapreduce/lib/graphy/backends/google_chart_api/encoders.py