Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

arrayHeight

arrayHeight: number = 0

Gets the height of the 2-dimensional array of Z-Values where array is ranked [width][height]

arrayWidth

arrayWidth: number = 0

Gets the width of the 2-dimensional array of Z-Values where array is ranked [width][height]

Readonly dataChanged

dataChanged: EventHandler<IDataChangeArgs> = new EventHandler<IDataChangeArgs>()

An EventHandler which is raised when the data changes.

remarks

To subscribe to dataChanged, use the following code:

const dataSeries = new XyDataSeries(wasmContext);
const callback = () => {
   // Data has changed
};
dataSeries.dataChanged.subscribe(callback);

To unsubscribe from dataChanged, use the following code:

const dataSeries = new XyDataSeries(wasmContext);
dataSeries.dataChanged.unsubscribe(callback);

Protected hasDataChangesProperty

hasDataChangesProperty: boolean = false

When true, the BaseHeatmapDataSeries has data changes and requires redrawing

Readonly id

id: string

A unique Id for the IDataSeries

minXSpacing

minXSpacing: number = 0
inheritdoc

Protected normalizedVector

normalizedVector: FloatVector

A normalized {@link FloatVector} is a native / WebAssembly vector (array) of Float32 values with normalized values ready for drawing in SciChart's WebGL2 Rendering Engine

Protected size

size: number

Gets the size of the heatmap where size = arrayWidth * arrayHeight

Readonly type

type: EDataSeriesType = EDataSeriesType.HeatmapUniform

Gets the EDataSeriesType type of the DataSeries

Protected webAssemblyContext

webAssemblyContext: TSciChart

The {@link TSciChart | SciChart WebAssembly Context} containing native methods and access to our underlying WebGL2 rendering engine

Readonly xStart

xStart: number

xStart defines the Start point on the XAxis where this heatmap will be drawn

Readonly xStep

xStep: number

xStep defines Step on the XAxis for each cell in the heatmap

Readonly yStart

yStart: number

yStart defines the Start point on the YAxis where this heatmap will be drawn

Readonly yStep

yStep: number

yStep defines Step on the YAxis for each cell in the heatmap

Accessors

changeCount

  • get changeCount(): number
  • Gets the change count for this data series. Allows to indentify when data series was changed

    inheritdoc

    Returns number

containsNaN

  • get containsNaN(): boolean
  • set containsNaN(value: boolean): void
  • Gets or sets whether the Y data contains NaN values. Set containsNaN = false for the performance optimization when the series has no NaNs

    inheritdoc

    Returns boolean

  • Gets or sets whether the Y data contains NaN values. Set containsNaN = false for the performance optimization when the series has no NaNs

    inheritdoc

    Parameters

    • value: boolean

    Returns void

dataDistributionCalculator

dataSeriesName

  • get dataSeriesName(): string
  • set dataSeriesName(dataSeriesName: string): void
  • Gets the DataSeries name. This is used in legend controls and tooltips to identify the series

    inheritdoc

    Returns string

  • Gets the DataSeries name. This is used in legend controls and tooltips to identify the series

    inheritdoc

    Parameters

    • dataSeriesName: string

    Returns void

hasDataChanges

  • get hasDataChanges(): boolean
  • Returns true if the Heatmap DataSeries has data changes. This flag is set to true when notifyDataChanged is called, and reset to false after

    Returns boolean

hasNaNs

  • get hasNaNs(): boolean
  • set hasNaNs(value: boolean): void
  • Gets/sets whether this Heatmap has NaN value, to display them as transparent tiles

    Returns boolean

  • Gets/sets whether this Heatmap has NaN value, to display them as transparent tiles

    Parameters

    • value: boolean

    Returns void

hasValues

  • get hasValues(): boolean
  • Gets whether this Heatmap has values to display

    Returns boolean

isEvenlySpaced

  • get isEvenlySpaced(): boolean
  • set isEvenlySpaced(value: boolean): void

isSorted

  • get isSorted(): boolean
  • set isSorted(value: boolean): void
  • Gets or sets whether the X-values are sorted ascending or not. See remarks at IDataSeries.isSorted for further information

    inheritdoc

    Returns boolean

  • Gets or sets whether the X-values are sorted ascending or not. See remarks at IDataSeries.isSorted for further information

    inheritdoc

    Parameters

    • value: boolean

    Returns void

xMax

  • get xMax(): number
  • Gets the maximum X-value for this heatmap, which controls where it is displayed on a cartesian chart

    Returns number

xMin

  • get xMin(): number
  • Gets the minimum X-value for this heatmap, which controls where it is displayed on a cartesian chart

    Returns number

xRange

  • Gets the XRange for this heatmap, which controls where it is displayed on a cartesian chart

    Returns NumberRange

yMax

  • get yMax(): number
  • Gets the maximum Y-value for this heatmap, which controls where it is displayed on a cartesian chart

    Returns number

yMin

  • get yMin(): number
  • Gets the minimum Y-value for this heatmap, which controls where it is displayed on a cartesian chart

    Returns number

yRange

  • Gets the YRange for this heatmap, which controls where it is displayed on a cartesian chart

    Returns NumberRange

zMax

  • get zMax(): number
  • Computes the maximum Z-value for this heatmap

    remarks

    Be aware for performance reasons, every call to zMax will result in a recalculation

    Returns number

zMin

  • get zMin(): number
  • Computes the minimum Z-value for this heatmap

    remarks

    Be aware for performance reasons, every call to zMin will result in a recalculation

    Returns number

zRange

  • Computes the ZRange for this heatmap, which controls where it is displayed on a cartesian chart

    remarks

    Be aware for performance reasons, every call to zRange will result in a recalculation

    Returns NumberRange

Methods

clear

  • clear(): void

count

  • count(): number

delete

  • delete(): void
  • Deletes native (WebAssembly) memory used by this type, after which it cannot be used.

    remarks

    Call .delete() before finishing with the object to ensure that WebAssmembly memory leaks do not occur.

    All elements within SciChart's High Performance Realtime JavaScript Charts which implement IDeletable must be deleted manually to free native (WebAssembly) memory

    Returns void

getIndicesRange

  • Gets the integer indices of the XValues array that are currently in the VisibleRange passed in, and an undefined range otherwise.

    Parameters

    • visibleRange: NumberRange

      The VisibleRange to get the indices range

    • isCategoryData: boolean

      If True the renderable series uses CategoryAxis

    • Optional downSearchMode: ESearchMode

      Specifies the search mode used to look for the index of visibleRange.Min

    • Optional upSearchMode: ESearchMode

      Specifies the search mode used to look for the index of visibleRange.Max

    Returns NumberRange

    numberRange The indices to the X-Data that are currently in range.

getIsDeleted

  • getIsDeleted(): boolean

getMetadataAt

getMetadataHeight

  • getMetadataHeight(): number

getMetadataWidth

  • getMetadataWidth(): number

getNativeIndexes

  • getNativeIndexes(): SCRTDoubleVector

getNativeXValues

  • getNativeXValues(): SCRTDoubleVector

getNativeYValues

  • getNativeYValues(): SCRTDoubleVector

getNormalizedVector

  • getNormalizedVector(colorMap: IColorMapParams, fillValuesOutOfRange?: boolean): FloatVector

getWindowedYRange

getXRange

getXValue

  • getXValue(xIndex: number): number
  • Gets the X-value at the specified index. This will be computed from constructor parameters xStep and xStart

    Parameters

    • xIndex: number

    Returns number

getYRange

getYValue

  • getYValue(yIndex: number): number
  • Gets the Y-value at the specified index. This will be computed from constructor parameters yStep and yxStart

    Parameters

    • yIndex: number

    Returns number

Protected getZRange

  • Computes the range in the Z-direction for this DataSeries

    remarks

    Be aware for performance reasons, every call to getZRange will result in a recalculation

    Returns NumberRange

getZValue

  • getZValue(yIndex: number, xIndex: number): number
  • Gets the ZValue at the specific Y,X index where Y must be within 0-arrayHeight and X must be within 0-arrayWidth

    Parameters

    • yIndex: number

      the y-index from 0 to arrayHeight

    • xIndex: number

      the x-index from 0 to arrayWidth

    Returns number

getZValues

  • getZValues(): number[][]
  • Gets a readonly collection of Z-values which can be read in the format zValues[y][x] Note that changes or manipulation of the 2D array will not update the Heatmap. Set it back via setZValues() to see changes to the chart

    Returns number[][]

notifyDataChanged

recreateNormalizedVector

  • recreateNormalizedVector(zMin: number, zMax: number, fillValuesOutOfRange?: boolean): void
  • Recreates the normalized vector (internally used for drawing heatmap) according to zMin and zMax values

    Parameters

    • zMin: number
    • zMax: number
    • Optional fillValuesOutOfRange: boolean

    Returns void

Protected setMetadata

Protected setMetadataAt

  • setMetadataAt(yIndex: number, xIndex: number, metadata: IPointMetadata): void

setMetadataGenerator

  • Sets a function that will be used to generate metadata for values when they are appended/inserted, if no explicit metadata is supplied.

    Parameters

    Returns void

setZValue

  • setZValue(yIndex: number, xIndex: number, zValue: number, metadata?: IPointMetadata): void
  • Sets the ZValue at the specific Y,X index where Y must be within 0-arrayHeight and X must be within 0-arrayWidth

    Parameters

    • yIndex: number

      the y-index from 0 to arrayHeight

    • xIndex: number

      the x-index from 0 to arrayWidth

    • zValue: number

      the new Z-value

    • Optional metadata: IPointMetadata

      The point metadata

    Returns void

setZValues

  • setZValues(zValues: number[][], metadata?: IPointMetadata[][]): void
  • Sets a 2D array of zValues. Input is in the format zValues[y][x] where Y is 0 to height and X is 0 to Width

    Parameters

    • zValues: number[][]
    • Optional metadata: IPointMetadata[][]

      The array of arrays of point metadata

    Returns void

toJSON

  • Convert the object to a definition that can be serialized to JSON, or used directly with the builder api

    Parameters

    • Optional excludeData: boolean

      if set true, data values will not be included in the json.

    Returns TSeriesDataDefinition

Protected validateIndexes

  • validateIndexes(yIndex: number, xIndex: number): void

Generated using TypeDoc