add method

add

Add a new Timeline using PivotTable as data source

Returns

The new add Timeline index

def add(self, pivot, dest_cell_name, base_field_name):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
dest_cell_namestrThe cell name in the upper-left corner of the Timeline range.
base_field_namestrThe name of PivotField in PivotTable.BaseFields

Example


# Add a new Timeline using PivotTable as data source
sheet.timelines.add(pivot, "i15", "date")

add

Add a new Timeline using PivotTable as data source

Returns

The new add Timeline index

def add(self, pivot, dest_cell_name, base_field_index):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
dest_cell_namestrThe cell name in the upper-left corner of the Timeline range.
base_field_indexintThe index of PivotField in PivotTable.BaseFields

Example


# Add a new Timeline using PivotTable as data source
sheet.timelines.add(pivot, "i5", 1)

add

Add a new Timeline using PivotTable as data source

Returns

The new add Timeline index

def add(self, pivot, dest_cell_name, base_field):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
dest_cell_namestrThe cell name in the upper-left corner of the Timeline range.
base_fieldaspose.cells.pivot.PivotFieldThe PivotField in PivotTable.BaseFields

Example


# Add a new Timeline using PivotTable as data source
sheet.timelines.add(pivot, "i10", pivot.base_fields[1])

add

Add a new Timeline using PivotTable as data source

Returns

The new add Timeline index

def add(self, pivot, row, column, base_field_name):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Timeline range.
columnintColumn index of the cell in the upper-left corner of the Timeline range.
base_field_namestrThe name of PivotField in PivotTable.BaseFields

Example


# Add a new Timeline using PivotTable as data source
sheet.timelines.add(pivot, 10, 5, "date")

add

Add a new Timeline using PivotTable as data source

Returns

The new add Timeline index

def add(self, pivot, row, column, base_field_index):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Timeline range.
columnintColumn index of the cell in the upper-left corner of the Timeline range.
base_field_indexintThe index of PivotField in PivotTable.BaseFields

Example


# Add a new Timeline using PivotTable as data source
sheet.timelines.add(pivot, 15, 5, 1)

add

Add a new Timeline using PivotTable as data source

Returns

The new add Timeline index

def add(self, pivot, row, column, base_field):
    ...
ParameterTypeDescription
pivotaspose.cells.pivot.PivotTablePivotTable object
rowintRow index of the cell in the upper-left corner of the Timeline range.
columnintColumn index of the cell in the upper-left corner of the Timeline range.
base_fieldaspose.cells.pivot.PivotFieldThe PivotField in PivotTable.BaseFields

Example


# Add a new Timeline using PivotTable as data source
sheet.timelines.add(pivot, 20, 5, pivot.base_fields[1])

See Also