Trendline.DisplayEquation プロパティ (Excel)

True if the equation for the trendline is displayed on the chart (in the same data label as the R-squared value). Setting this property to True automatically turns on data labels. 読み取り/書き込みが可能な Boolean です。

構文

DisplayEquation

Trendline オブジェクトを表す変数。

次の使用例は、グラフ 1 の近似曲線 1 の R 二乗値と数式を表示します。 この例は、最初の系列の近似曲線を持つ 2D 縦棒グラフで実行する必要があります。

With Charts("Chart1").SeriesCollection(1).Trendlines(1) 
 .DisplayRSquared = True 
 .DisplayEquation = True 
End With

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。