'Collect params related to the data series.'

def _GetDataSeriesParams(self, chart):

    (y_min, y_max) = (chart.GetDependentAxis().min, chart.GetDependentAxis().max)
    series_data = []
    markers = []
    for (i, series) in enumerate(chart.data):
        data = series.data
        if (not data):
            continue
        series_data.append(data)
        for (x, marker) in series.markers:
            args = [marker.shape, marker.color, i, x, marker.size]
            markers.append(','.join((str(arg) for arg in args)))
    encoder = self._GetDataEncoder(chart)
    result = util.EncodeData(chart, series_data, y_min, y_max, encoder)
    result.update(util.JoinLists(marker=markers))
    return result
