Get Equation Text of Chart Trendline with Golang via C++
Contents
[
Hide
]
You can retrieve the Equation Text of a chart trendline using Aspose.Cells. Aspose.Cells provides the Trendline.GetText() property, which returns the Equation Text of the chart trendline. To make use of this property, you first need to call the Chart.Calculate() method.
The following screenshot shows the chart with a trendline, and its Equation Text is displayed in red. We will retrieve this text using the Trendline.GetText() property in the sample code below.

C++ code to get the equation text of a chart trendline
Output generated by the sample code
This is the console output of the above sample code.
Equation Text: y = 8.1333x + 5