Platforms to show: All Mac Windows Linux Cross-Platform

Back to CDTrendLayerMBS class.

CDTrendLayerMBS.addConfidenceBand(confidence as Double, upperFillColor as Integer, upperEdgeColor as Integer = &hFF000000, upperLineWidth as Integer = -1, lowerFillColor as Integer = -1, lowerEdgeColor as Integer = -1, lowerLineWidth as Integer = -1)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a confidence band to the trend layer.

Please refer to the description of TrendLayer on what is a confidence band.
ArgumentDefaultDescription
confidence(Mandatory)The confidence level - must be between 0 - 1.
upperFillColor(Mandatory)The fill color for the upper side of the confidence band (the portion that is above the regression line).
upperEdgeColorTransparentThe border color for the upper side of the confidence band (the portion that is above the regression line).
upperLineWidth1The border width for the upper side of the confidence band (the portion that is above the regression line).
lowerFillColor-1The fill color for the lower side of the confidence band (the portion that is below the regression line). -1 means the color is the same as upperFillColor.
lowerEdgeColor-1The border color for the lower side of the confidence band (the portion that is below the regression line). -1 means the color is the same as upperEdgeColor.
lowerLineWidth-1The border width for the lower side of the confidence band (the portion that is below the regression line). -1 means the color is the same as upperLineWidth.

See also:

CDTrendLayerMBS.addPredictionBand(confidence as Double, upperFillColor as Integer, upperEdgeColor as Integer = &hFF000000, upperLineWidth as Integer = -1, lowerFillColor as Integer = -1, lowerEdgeColor as Integer = -1, lowerLineWidth as Integer = -1)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a prediction band to the trend layer.

Please refer to the description of TrendLayer on what is a prediction band.
ArgumentDefaultDescription
confidence(Mandatory)The confidence level - must be between 0 - 1.
upperFillColor(Mandatory)The fill color for the upper side of the prediction band (the portion that is above the regression line).
upperEdgeColorTransparentThe border color for the upper side of the prediction band (the portion that is above the regression line).
upperLineWidth1The border width for the upper side of the prediction band (the portion that is above the regression line).
lowerFillColor-1The fill color for the lower side of the prediction band (the portion that is below the regression line). -1 means the color is the same as upperFillColor.
lowerEdgeColor-1The border color for the lower side of the prediction band (the portion that is below the regression line). -1 means the color is the same as upperEdgeColor.
lowerLineWidth-1The border width for the lower side of the prediction band (the portion that is below the regression line). -1 means the color is the same as upperLineWidth.

See also:

CDTrendLayerMBS.getCoefficient(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the coefficients of the regression function.

The coefficients depend on the regression type. They are indexed as a0, a1, a2, ... in the regression type table published on TrendLayer.

CDTrendLayerMBS.getCorrelation as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the correlation coefficient of the trend line.

Some examples using this method:

CDTrendLayerMBS.getIntercept as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the y-axis intercept of the trend line.

Some examples using this method:

CDTrendLayerMBS.getLine as CDLineObjMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Retrieves an opaque LineObj representing the trend line. The opaque LineObj is to be used in XYChart.addInterLineLayer for adding coloring between lines.

CDTrendLayerMBS.getSlope as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the slope of the trend line.

Some examples using this method:

CDTrendLayerMBS.getStdError as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the standard error of the trend line.

Some examples using this method:

CDTrendLayerMBS.setImageMapWidth(w as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 8.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the effective width of the line used for producing image maps.

For thin lines, it is hard to click on the lines. So for the purpose of producing image maps for a line chart, ChartDirector can assume the line is very thick. The default is 10 pixels.
ArgumentDefaultDescription
width(Mandatory)The effective width of the line used for producing image maps.

CDTrendLayerMBS.setRegressionType(regressionType as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the regression type to be used.

RegressionType:
Must be one of the constants kLinearRegression, kConstrainedLinearRegression, kExponentialRegression and kLogarithmicRegression, or the return value of BaseChartMBS.PolynomialRegression. They represent linear regression, constrained linear regression, exponential regression, logarithmic regression, and polynomial regression of configurable degree.

Some examples using this method:

The items on this page are in the following plugins: MBS ChartDirector Plugin.


The biggest plugin in space...