Skip to main content

DifferenceCalculation Class

#Declaration

TypeScript
export class DifferenceCalculation extends MeasureCalculation

#Inherited Members

#Inheritance

#constructor

Initializes a new instance of the DifferenceCalculation class.

#Declaration

TypeScript
constructor(
    modelJson?: any,
    serializer?: DevExpress.Analytics.Utils.ModelSerializer
)

#Parameters

Name Type Description
modelJson any

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

#Properties

#differenceType Property

#Declaration

TypeScript
differenceType: ko.Observable<DevExpress.Dashboard.Model.DifferenceType>

#Property Value

Type
Observable<DifferenceType>

#lookupShiftExpression Property

#Declaration

TypeScript
get lookupShiftExpression(): string

#Property Value

Type
string

#name Property

#Declaration

TypeScript
get name(): string

#Property Value

Type
string

#target Property

#Declaration

TypeScript
target: ko.Observable<DevExpress.Dashboard.Model.DifferenceTarget>

#Property Value

Type
Observable<DifferenceTarget>

#Methods

#getInfo Method

For internal use.

#Declaration

TypeScript
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

#Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.