---
title: "Aspose::Cells::Charts::Trendline::SetDisplayRSquared method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.charts/trendline/setdisplayrsquared/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Charts::Trendline::SetDisplayRSquared method. Represents if the R-squared value of the trendline is displayed on the chart (in the same data label as the equation). Setting this property to True automatically turns on data labels in C++."
---

## Trendline::SetDisplayRSquared method


Represents if the R-squared value of the trendline is displayed on the chart (in the same data label as the equation). Setting this property to True automatically turns on data labels.

```cpp
void Aspose::Cells::Charts::Trendline::SetDisplayRSquared(bool value)
```

## See Also

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