Class TrendLine<S extends AbstractChartSeries<?,?>>
Object
ObjectIdentity
BacklinkBuilder<S>
TrendLine<S>
- Type Parameters:
S- the type of the series this trend line belongs to
Builder for a trend line overlay on a chart series, obtained from
AbstractChartSeries.withTrendLine() rather than instantiated directly.-
Field Summary
Fields inherited from class BacklinkBuilder
METHOD_BACKFields inherited from class ObjectIdentity
classId, idGenerator, instanceId, invocations, m, NONE, parentObjectIdentity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetColor(AuxLineColor color) Sets this trend line's color.setHideDataLabels(Boolean hideDataLabels) Hides this trend line's data labels (the value shown on or next to each point).Sets this trend line's display label, shown in the chart's legend.setRegressionType(String regressionType) Sets the regression model this trend line fits to the series' data: a linear relationship (y = a + bx) or an exponential one (y = a * e^bx) between the dependent variableyand the independent variablex.setShowInLegend(Boolean showInLegend) Sets whether this trend line appears in the chart's legend.Methods inherited from class BacklinkBuilder
back, getParentMethods inherited from class ObjectIdentity
addInvocation, addInvocation, addInvocationInternal, getClassId
-
Constructor Details
-
TrendLine
-
-
Method Details
-
setLabel
Sets this trend line's display label, shown in the chart's legend.- Parameters:
label- the label to display for this trend line- Returns:
- this trend line, for chaining further configuration
-
setRegressionType
Sets the regression model this trend line fits to the series' data: a linear relationship (y = a + bx) or an exponential one (y = a * e^bx) between the dependent variableyand the independent variablex.- Parameters:
regressionType-"linear"or"exponential"- Returns:
- this trend line, for chaining further configuration
-
setShowInLegend
Sets whether this trend line appears in the chart's legend.- Parameters:
showInLegend-trueto show it in the legend;falseornullto hide it- Returns:
- this trend line, for chaining further configuration
-
setHideDataLabels
Hides this trend line's data labels (the value shown on or next to each point).- Parameters:
hideDataLabels-trueto hide the labels;falseornullto show them- Returns:
- this trend line, for chaining further configuration
-
setColor
Sets this trend line's color.- Parameters:
color- the color to render this trend line in- Returns:
- this trend line, for chaining further configuration
-