---
title: "Aspose::Cells::Charts::ChartArea::SetXRatioToChart method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.charts/chartarea/setxratiotochart/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Charts::ChartArea::SetXRatioToChart method. Gets or sets the horizontal offset from the upper-left corner column, as a ratio of the chart area in C++."
---

## ChartArea::SetXRatioToChart method


Gets or sets the horizontal offset from the upper-left corner column, as a ratio of the chart area.

```cpp
void Aspose::Cells::Charts::ChartArea::SetXRatioToChart(double value)
```

## See Also

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