Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProgressivePattern

Base class for Progressive DataPattern objects.

Index

Methods

Abstract getXMax

  • getXMax(segments: VisualType[], newPointsBound: Interval<Point> | undefined): number | undefined
  • Type parameters

    • VisualType: BasicChartVisual

    Parameters

    • segments: VisualType[]
    • newPointsBound: Interval<Point> | undefined

    Returns number | undefined

    Max X value of the series

Abstract getXMin

  • getXMin(segments: VisualType[], newPointsBound: Interval<Point> | undefined): number | undefined
  • Type parameters

    • VisualType: BasicChartVisual

    Parameters

    • segments: VisualType[]
    • newPointsBound: Interval<Point> | undefined

    Returns number | undefined

    Min X value of the series

Abstract getYMax

  • getYMax(segments: VisualType[], newPointsBound: Interval<Point> | undefined): number | undefined
  • Type parameters

    • VisualType: BasicChartVisual

    Parameters

    • segments: VisualType[]
    • newPointsBound: Interval<Point> | undefined

    Returns number | undefined

    Max Y value of the series

Abstract getYMin

  • getYMin(segments: VisualType[], newPointsBound: Interval<Point> | undefined): number | undefined
  • Type parameters

    • VisualType: BasicChartVisual

    Parameters

    • segments: VisualType[]
    • newPointsBound: Interval<Point> | undefined

    Returns number | undefined

    Min Y value of the series

Abstract setPrecision

  • setPrecision(precision: "normal" | "high"): this
  • Set precision of data packing optimization.

    Example usage:

    Normal precision

     DataPatterns.horizontalProgressive.setPrecision( 'normal' )

    High precision

    Sometimes needed if data is very dense, yet still detailed.

     DataPatterns.horizontalProgressive.setPrecision( 'high' )

    Parameters

    • precision: "normal" | "high"

      Data packing precision.

    Returns this

    New DataPattern object.

Static Record

  • Record(defaultValues: TProps, name?: undefined | string): Factory<TProps>
  • Unlike other types in Immutable.js, the Record() function creates a new Record Factory, which is a function that creates Record instances.

    See above for examples of using Record().

    Note: Record is a factory function and not a class, and does not use the new keyword during construction.

    Type parameters

    • TProps

    Parameters

    • defaultValues: TProps
    • Optional name: undefined | string

    Returns Factory<TProps>