DrawTrendLine Method (6)¶
DrawTrendLine (1 of 6)¶
Summary¶
Draws a trend line.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | The time value of the trend line start point location on the X-axis. |
y1 | double | The Y-axis value of the trend line start location. |
time2 | DateTime | The time value of the trend line end point location on the X-axis. |
y2 | double | The Y-axis value of the trend line end location. |
color | Color | The color of the trend line. |
Return Value¶
ChartTrendLine
Declaring Type¶
DrawTrendLine (2 of 6)¶
Summary¶
Draws a trend line.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | The time value of the trend line start point location on the X-axis. |
y1 | double | The Y-axis value of the trend line start location. |
time2 | DateTime | The time value of the trend line end point location on the X-axis. |
y2 | double | The Y-axis value of the trend line end location. |
color | Color | The color of the trend line. |
thickness | int | The thickness of the trend line. |
Return Value¶
ChartTrendLine
Declaring Type¶
DrawTrendLine (3 of 6)¶
Summary¶
Draws a trend line.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | The time value of the trend line start point location on the X-axis. |
y1 | double | The Y-axis value of the trend line start location. |
time2 | DateTime | The time value of the trend line end point location on the X-axis. |
y2 | double | The Y-axis value of the trend line end location. |
color | Color | The color of the trend line. |
thickness | int | The thickness of the trend line. |
lineStyle | LineStyle | The trend line style. |
Return Value¶
ChartTrendLine
Declaring Type¶
DrawTrendLine (4 of 6)¶
Summary¶
Draws a trend line.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | The bar index of the trend line start point location on the X-axis. |
y1 | double | The Y-axis value of the trend line start location. |
barIndex2 | int | The bar index of the trend line end point location on the X-axis. |
y2 | double | The Y-axis value of the trend line end location. |
color | Color | The color of the trend line. |
Return Value¶
ChartTrendLine
Declaring Type¶
DrawTrendLine (5 of 6)¶
Summary¶
Draws a trend line.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | The bar index of the trend line start point location on the X-axis. |
y1 | double | The Y-axis value of the trend line start location. |
barIndex2 | int | The bar index of the trend line end point location on the X-axis. |
y2 | double | The Y-axis value of the trend line end location. |
color | Color | The color of the trend line. |
thickness | int | The thickness of the trend line. |
Return Value¶
ChartTrendLine
Declaring Type¶
DrawTrendLine (6 of 6)¶
Summary¶
Draws a trend line.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | The bar index of the trend line start point location on the X-axis. |
y1 | double | The Y-axis value of the trend line start location. |
barIndex2 | int | The bar index of the trend line end point location on the X-axis. |
y2 | double | The Y-axis value of the trend line end location. |
color | Color | The color of the trend line. |
thickness | int | The thickness of the trend line. |
lineStyle | LineStyle | The trend line style. |
Return Value¶
ChartTrendLine
Declaring Type¶
Last update: March 17, 2023