

def SeriesFactory(values, xvalues=None, zvalues=None, title=None, title_from_data=False):
    '\n    Convenience Factory for creating chart data series.\n    '
    if (not isinstance(values, Reference)):
        values = Reference(range_string=values)
    if title_from_data:
        cell = values.pop()
        title = '{0}!{1}'.format(values.sheetname, cell)
        title = SeriesLabel(strRef=StrRef(title))
    elif (title is not None):
        title = SeriesLabel(v=title)
    source = NumDataSource(numRef=NumRef(f=values))
    if (xvalues is not None):
        if (not isinstance(xvalues, Reference)):
            xvalues = Reference(range_string=xvalues)
        series = XYSeries()
        series.yVal = source
        series.xVal = AxDataSource(numRef=NumRef(f=xvalues))
        if (source is not None):
            if (not isinstance(zvalues, Reference)):
                zvalues = Reference(range_string=zvalues)
            series.zVal = NumDataSource(NumRef(f=zvalues))
    else:
        series = Series()
        series.val = source
    if (title is not None):
        series.title = title
    return series

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/chart/series_factory.py SeriesFactory/VarMisuse@187/261 `zvalues`->`source`