## Chart::SetChartDataRange(const U16String\&, bool) method


Specifies data range for a chart.

```cpp
void Aspose::Cells::Charts::Chart::SetChartDataRange(const U16String &area, bool isVertical)
```


| Parameter | Type | Description |
| --- | --- | --- |
| area | const U16String\& | Specifies values from which to plot the data series |
| isVertical | bool | Specifies whether to plot the series from a range of cell values by row or by column. |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [Chart](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
## Chart::SetChartDataRange(const char16_t*, bool) method


Specifies data range for a chart.

```cpp
void Aspose::Cells::Charts::Chart::SetChartDataRange(const char16_t *area, bool isVertical)
```


| Parameter | Type | Description |
| --- | --- | --- |
| area | const char16_t* | Specifies values from which to plot the data series |
| isVertical | bool | Specifies whether to plot the series from a range of cell values by row or by column. |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [Chart](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
