Get Equation Text of Chart Trendline with Golang via C++

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.

todo:image_alt_text

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