Options
All
  • Public
  • Public/Protected
  • All
Menu
summary

The UniformGridDataSeries3D wraps a 2D array of numbers which become the Y-values (heights) in various BaseRenderableSeries3D in SciChart's High Performance JavaScript 3D Charts.

description

The SurfaceMeshRenderableSeries3D requires a 2D array of numbers to map to Y-values (heights).

The xStart, @{link xStep} properties define the extents of the data in the X-direction, and yStart, yStep define the extents of the data in the Y-direction.

Y-values may be updated via manipulating the array returned by getYValues, or by setting a new array to setYValues. When manpulating data directly, be sure to call notifyDataChanged to inform SciChart to redraw.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly dataChanged

dataChanged: EventHandler<void>

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);

type

type: EDataSeriesType3D = EDataSeriesType3D.UniformGrid3D

Protected webAssemblyContext

webAssemblyContext: TSciChart3D

The {@link TSciChart3D | SciChart WebAssembly Context} containing native methods and access to our WebGL2 Engine

Protected yRangeCached

yRangeCached: NumberRange

Accessors

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

isModified

  • get isModified(): boolean
  • Determines whether the Data Series has been modified since last resetModified() call.

    Returns boolean

xRange

xSize

  • get xSize(): number
  • The xSize is the WIDTH or number of elements in each or of the 2-dimensional array, e.g. [[1, 2][3, 4][5, 6]] has a xSize of 2

    Returns number

xStart

  • get xStart(): number
  • set xStart(xStart: number): void
  • xStart defines the Start point on the XAxis where this grid or mesh will be drawn

    Returns number

  • xStart defines the Start point on the XAxis where this grid or mesh will be drawn

    Parameters

    • xStart: number

    Returns void

xStep

  • get xStep(): number
  • set xStep(xStep: number): void
  • xStep defines Step on the XAxis for each cell in the grid or mesh

    Returns number

  • xStep defines Step on the XAxis for each cell in the grid or mesh

    Parameters

    • xStep: number

    Returns void

yRange

zRange

zSize

  • get zSize(): number
  • The zSize is the HEIGHT or number of rows of the 2-dimensional array, e.g. [[1, 2][3, 4][5, 6]] has a height of 3

    Returns number

zStart

  • get zStart(): number
  • set zStart(zStart: number): void
  • zStart defines the Start point on the ZAxis where this grid or mesh will be drawn

    Returns number

  • zStart defines the Start point on the ZAxis where this grid or mesh will be drawn

    Parameters

    • zStart: number

    Returns void

zStep

  • get zStep(): number
  • set zStep(zStep: number): void
  • zStep defines Step on the ZAxis for each cell in the grid or mesh

    Returns number

  • zStep defines Step on the ZAxis for each cell in the grid or mesh

    Parameters

    • zStep: number

    Returns void

Methods

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

getIsDeleted

  • getIsDeleted(): boolean
  • Returns true if this DataSeries has been deleted and native memory destroyed

    Returns boolean

getYValue

  • getYValue(zIndex: number, xIndex: number): number
  • Gets the YValue at the specific Z,X index where Z must be within 0-zSize and X must be within 0-xSize

    Parameters

    • zIndex: number

      the z-index from 0 to zSize

    • xIndex: number

      the x-index from 0 to xSize

    Returns number

getYValues

  • getYValues(): number[][]
  • Gets the Y-Values array as a two dimensional array. Output is in the format YValues[z][x] where z is 0 to zSize and X is 0 to xSize.

    Returns number[][]

notifyDataChanged

  • notifyDataChanged(): void

resetModified

  • resetModified(): void

setYValue

  • setYValue(yIndex: number, xIndex: number, zValue: number): void
  • Sets the YValue at the specific Z,X index where Z must be within 0-zSize and X must be within 0-xSize

    Parameters

    • yIndex: number
    • xIndex: number

      the x-index from 0 to xSize

    • zValue: number

    Returns void

setYValues

  • setYValues(YValues: number[][]): void
  • Sets a 2D array of YValues. Input is in the format YValues[z][x] where z is 0 to zSize and X is 0 to xSize Note that setting the YValues involves a clone. Once the array has been set you cannot manipulate the input array and expect changes on the chart.

    Parameters

    • YValues: number[][]

    Returns void

Generated using TypeDoc