---
title: "reset_ranges method"
url: "https://reference.aspose.com/cells/python-net/aspose.cells.charts/sparklinegroup/reset_ranges/"
product: "Aspose.Cells for Python via .NET API References"
---


## reset_ranges(self, data_range, is_vertical, location_range) {#System.String-bool-aspose.cells.CellArea}

Resets the data range and location range of the sparkline group. 
This method will clear original sparkline items in the group and creates new sparkline items for the new ranges.



```python

def reset_ranges(self, data_range, is_vertical, location_range):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| data_range | System.String | Specifies the new data range of the sparkline group. |
| is_vertical | bool | Specifies whether to plot the sparklines from the new data range by row or by column. |
| location_range | aspose.cells.CellArea | Specifies where the sparklines to be placed. |



### See Also
* module [`aspose.cells.charts`](../../)
* class [`SparklineGroup`](/cells/python-net/aspose.cells.charts/sparklinegroup)
