
以下の画像は igFinancialChart でトレンドライン レイヤーの使用を表示します。トレンドラインにはさまざまなタイプがあります。QuadraticFit を表示するドロップダウンを使用してタイプを変更できます。
注: このプロパティはすべてのチャート ペインに適用し、同じトレンドライン タイプはすべてのチャート ペインに適用されます。
以下のコードは TrendLineType を設定する方法を紹介します。
JavaScript の場合:
$("#financialChart").igFinancialChart({
dataSource: data,
trendLineType: "QuinticFit",
trendLineBrushes: ["Green"],
trendLineThickness: 2
});
$("#financialChart").igFinancialChart("option", "trendLineType", "QuinticFit");
$("#financialChart").igFinancialChart("option", "trendLineBrushes", ["Green"]);
$("#financialChart").igFinancialChart("option", "trendLineThickness", 2);
オンラインで表示: GitHub