Type Alias NxTrendlineDef

Trendline input definition

Stability: experimental

type NxTrendlineDef = {
    qCalcR2?: boolean;
    qContinuousXAxis?: NxContinuousMode;
    qMultiDimMode?: NxTrendlineMode;
    qType?: NxLTrendlineType;
    qXColIx?: number;
}
Index

Properties

qCalcR2?: boolean

Set to true to calulatate the R2 score

qContinuousXAxis?: NxContinuousMode

Set if the numerical value of x axis dimension should be used

One of:

  • Never or CONTINUOUS_NEVER
  • Possible or CONTINUOUS_IF_POSSIBLE
  • Time or CONTINUOUS_IF_TIME
qMultiDimMode?: NxTrendlineMode

If you have a hypercube with two dimensions and qXColIx refers to a dimension This determines if you get one trendline of each value in the other dimension or Or trendline based on the sum of the value in the other dimension The sum variant is only supported when qXColIx is 0 and qMode (on the hypercube) is K or T

One of:

  • Multi or TRENDLINE_MULTILINE
  • Sum or TRENDLINE_SUM

The type of trendline to calculate

One of:

  • AVERAGE or Average
  • LINEAR or Linear
  • POLYNOMIAL2 or Polynomial2
  • POLYNOMIAL3 or Polynomial3
  • POLYNOMIAL4 or Polynomial4
  • EXPONENTIAL or Exponential
  • POWER or Power
  • LOG or Logarithmic
qXColIx?: number

The column in the hypercube to be used as x axis. Can point to either a dimension (numeric or text) or a measure