Interface ITrendline
public interface ITrendline
Represents a trendline in a chart. A trendline shows the trend, or direction, of data in a series.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the formatting of the object.voiddelete()Deletes the object.doubleGets the number of periods (or units on a scatter chart) that the trendline extends backward.Returns aIDataLabelobject that represents the data label associated with the trendline.booleanGets whether to display the equation for the trendline (True if the equation for the trendline is displayed on the chart, in the same data label as the R-squared value).booleanGets whether to display the R-squared value (True if the R-squared value of the trendline is displayed on the chart, in the same data label as the equation).Returns the format for chart elements.doubleGets the number of periods (or units on a scatter chart) that the trendline extends forward.intgetIndex()Returns the index number of the object within the collection of similar objects.doubleGets the point where the trendline crosses the value axis.getName()Gets the name of the object.booleanGets if the trendline's name is automatically determined.intgetOrder()Gets the trendline order (an integer greater than 1) when the trendline type is Polynomial.Returns the parent object for the specified object.intGets the period for the moving-average trendline.getType()Gets the trendline type.voidsetBackward(double value) Sets the number of periods (or units on a scatter chart) that the trendline extends backward.voidsetDisplayEquation(boolean value) Sets whether to display the equation for the trendline (True if the equation for the trendline is displayed on the chart, in the same data label as the R-squared value).voidsetDisplayRSquared(boolean value) Sets whether to display the R-squared value (True if the R-squared value of the trendline is displayed on the chart, in the same data label as the equation).voidsetForward(double value) Sets the number of periods (or units on a scatter chart) that the trendline extends forward.voidsetIntercept(double value) Sets the point where the trendline crosses the value axis.voidSets the name of the object.voidsetNameIsAuto(boolean value) Sets if the trendline's name is automatically determined.voidsetOrder(int value) Sets the trendline order (an integer is greater than or equal to 2 and less than or equal to 6) when the trendline type is Polynomial.voidsetPeriod(int value) Sets the period for the moving-average trendline.voidsetType(TrendlineType value) Sets the trendline type.
-
Method Details
-
getIndex
int getIndex()Returns the index number of the object within the collection of similar objects. -
getBackward
double getBackward()Gets the number of periods (or units on a scatter chart) that the trendline extends backward. -
setBackward
void setBackward(double value) Sets the number of periods (or units on a scatter chart) that the trendline extends backward. -
getDisplayEquation
boolean getDisplayEquation()Gets whether to display the equation for the trendline (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. -
setDisplayEquation
void setDisplayEquation(boolean value) Sets whether to display the equation for the trendline (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. -
getDisplayRSquared
boolean getDisplayRSquared()Gets whether to display the R-squared value (True if the R-squared value of the trendline is displayed on the chart, in the same data label as the equation). Setting this property to True automatically turns on data labels. -
setDisplayRSquared
void setDisplayRSquared(boolean value) Sets whether to display the R-squared value (True if the R-squared value of the trendline is displayed on the chart, in the same data label as the equation). Setting this property to True automatically turns on data labels. -
getFormat
IChartFormat getFormat()Returns the format for chart elements. -
getForward
double getForward()Gets the number of periods (or units on a scatter chart) that the trendline extends forward. -
setForward
void setForward(double value) Sets the number of periods (or units on a scatter chart) that the trendline extends forward. -
getIntercept
double getIntercept()Gets the point where the trendline crosses the value axis. -
setIntercept
void setIntercept(double value) Sets the point where the trendline crosses the value axis. -
getName
String getName()Gets the name of the object. -
setName
Sets the name of the object. -
getNameIsAuto
boolean getNameIsAuto()Gets if the trendline's name is automatically determined. -
setNameIsAuto
void setNameIsAuto(boolean value) Sets if the trendline's name is automatically determined. -
getOrder
int getOrder()Gets the trendline order (an integer greater than 1) when the trendline type is Polynomial. -
setOrder
void setOrder(int value) Sets the trendline order (an integer is greater than or equal to 2 and less than or equal to 6) when the trendline type is Polynomial. -
getParent
ISeries getParent()Returns the parent object for the specified object. -
getPeriod
int getPeriod()Gets the period for the moving-average trendline. -
setPeriod
void setPeriod(int value) Sets the period for the moving-average trendline. -
getType
TrendlineType getType()Gets the trendline type. -
setType
Sets the trendline type. -
getDataLabel
IDataLabel getDataLabel()Returns aIDataLabelobject that represents the data label associated with the trendline. -
clearFormats
void clearFormats()Clears the formatting of the object. -
delete
void delete()Deletes the object.
-