Interface for readonly configuration of SurfaceGridSeries3D.

Required properties:

  • columns: Amount of cells along X axis.
  • rows: Amount of cells along Z axis.

Optional properties:

All or any of these can be omitted or set to undefined, in which case a default value is used.

  • dataOrder: Specifies interpretation order for Height and Intensity data.
  • start: Specifies location of first cell on X and Z axes.
  • step: Specifies step between cells on X and Z axes.
  • end: Specifies location of last cell on X and Z axes.

Example usage:

 // Example 1, create surface grid series with minimum configuration.
const surfaceGrid = Chart3D.addSurfaceGridSeries({
columns: 100,
rows: 50,
})

See also addSurfaceScrollingGridSeries.

Hierarchy

  • SeriesOptions
    • SurfaceGridSeries3DOptions

Properties

automaticColorIndex?: number

Optional index to use for automatic coloring of series.

Normally series are automatically colored differently when you create several series in the same chart. However, in some cases you might want to alter this order of automatic coloring, or use the automatic color palettes on series that belong to different charts.

In these scenarios you can use automaticColorIndex to tell each series individually what is its place in the default color palette.

 // Create series using the first color in default Theme palette.
const series1 = chart.addLineSeries({ automaticColorIndex: 0 })
// Create another series colored with the 3rd color.
const series2 = chart.addLineSeries({ automaticColorIndex: 2 })
columns: number

Amount of cells along X axis.

Required!

Surface grid data amount is specified as columns * rows.

Larger data sets require more memory (RAM) to work. With nearly any setup, tens of millions data points can easily be reached and with good setups even billion (1 000 000 000) data points have been properly visualized.

dataOrder?: "columns" | "rows"

Specifies interpretation order for Height and Intensity data when using invalidateHeightMap or invalidateIntensityValues.

'columns' -> Supply lists of "columns"

 const intensityValues = [
[
0, // Intensity value column = 0, row = 0
0, // Intensity value column = 0, row = 1
0, // Intensity value column = 0, row = n
],
[
0, // Intensity value column = 1, row = 0
0, // Intensity value column = 1, row = 1
0, // Intensity value column = 1, row = n
],
]

'rows' -> Supply lists of "rows"

 const intensityValues = [
[
0, // Intensity value row = 0, column = 0
0, // Intensity value row = 0, column = 1
0, // Intensity value row = 0, column = n
],
[
0, // Intensity value row = 1, column = 0
0, // Intensity value row = 1, column = 1
0, // Intensity value row = 1, column = n
],
]

Optional, defaults to 'columns'.

end?: PointXZ

Specifies location of last cell on X and Z axes.

Optional.

end has priority over step.

Deprecated

Deprecated in v5.1.0. Use setEnd instead.

rows: number

Amount of cells along Z axis.

Required!

Surface grid data amount is specified as columns * rows.

Larger data sets require more memory (RAM) to work. With nearly any setup, tens of millions data points can easily be reached and with good setups even billion (1 000 000 000) data points have been properly visualized.

start?: PointXZ

Specifies location of first cell on X and Z axes.

Optional, defaults to { x: 0, z: 0 }

Deprecated

Deprecated in v5.1.0. Use setStart instead.

step?: PointXZ

Specifies step between cells on X and Z axes.

Optional, defaults to { x: 1, y: 1 }, unless end is specified.

Deprecated

Deprecated in v5.1.0. Use setStep instead.