Skip to main content

FormatConditionRangeGenerator Class

Declaration

export class FormatConditionRangeGenerator

Methods

calculateRangePercentValues(segmentCount) Method

Declaration

static calculateRangePercentValues(
    segmentCount: number
): Array<number>

Parameters

Name Type
segmentCount number

Returns

Type
number[]

compareValues(val1, val2, changeType) Method

Declaration

static compareValues(
    val1: any,
    val2: any,
    changeType: boolean
): number

Parameters

Name Type
val1 any
val2 any
changeType boolean

Returns

Type
number

generateGradientByStyles(condition, styles, segmentNumber) Method

Declaration

static generateGradientByStyles(
    condition: DevExpress.Dashboard.Model.FormatConditionRangeGradient,
    styles: Array<DevExpress.Dashboard.Model.StyleSettingsBase>,
    segmentNumber: number
): void

Parameters

Name Type
condition FormatConditionRangeGradient
styles StyleSettingsBase[]
segmentNumber number

generateGradientByType(condition, type, segmentNumber) Method

Declaration

static generateGradientByType(
    condition: DevExpress.Dashboard.Model.FormatConditionRangeGradient,
    type: DevExpress.Dashboard.Model.FormatConditionRangeGradientPredefinedType,
    segmentNumber: number,
    isBar?: boolean
): void

Parameters

Name Type
condition FormatConditionRangeGradient
type FormatConditionRangeGradientPredefinedType
segmentNumber number
isBar boolean

generateGradientColors(gradientType, count) Method

Declaration

static generateGradientColors(
    gradientType: DevExpress.Dashboard.Model.FormatConditionRangeGradientPredefinedType,
    count: number
): Array<DevExpress.Dashboard.Model.Color>

Parameters

Name Type
gradientType FormatConditionRangeGradientPredefinedType
count number

Returns

Type
Color[]

generateRangeSet(condition, type) Method

Declaration

static generateRangeSet(
    condition: DevExpress.Dashboard.Model.FormatConditionRangeSet,
    type: DevExpress.Dashboard.Model.FormatConditionRangeSetPredefinedType
): void

Parameters

Name Type
condition FormatConditionRangeSet
type FormatConditionRangeSetPredefinedType

getGradientPredefinedType(actualStyles, func) Method

Declaration

static getGradientPredefinedType(
    actualStyles: Array<DevExpress.Dashboard.Model.StyleSettingsBase>,
    func: (type: DevExpress.Dashboard.Model.FormatConditionRangeGradientPredefinedType) => DevExpress.Dashboard.Model.FormatConditionRangeBase
): DevExpress.Dashboard.Model.FormatConditionRangeGradientPredefinedType

Parameters

Name Type
actualStyles StyleSettingsBase[]
func (type: FormatConditionRangeGradientPredefinedType) => FormatConditionRangeBase

Returns

Type
FormatConditionRangeGradientPredefinedType

getPredefinedType(actualStyles, func) Method

Declaration

static getPredefinedType(
    actualStyles: Array<DevExpress.Dashboard.Model.StyleSettingsBase>,
    func: (type: DevExpress.Dashboard.Model.FormatConditionRangeSetPredefinedType) => DevExpress.Dashboard.Model.FormatConditionRangeBase
): DevExpress.Dashboard.Model.FormatConditionRangeSetPredefinedType

Parameters

Name Type
actualStyles StyleSettingsBase[]
func (type: FormatConditionRangeSetPredefinedType) => FormatConditionRangeBase

Returns

Type
FormatConditionRangeSetPredefinedType