Series type for visualizing a collection of { x, y, z } coordinates by different 2D markers.

PointCloudSeries3D is optimized for massive amounts of data - here are some reference specs to give an idea:

  • A static data set in millions data points range is rendered in hundreds of milliseconds (~200ms). Afterwards chart can be rotated and zoomed with 60 FPS.
  • With streaming data, even millions of data points can be streamed in every second, while retaining an interactive document.

Creating PointCloudSeries3D:

PointCloudSeries3D are created with addPointSeries method.

Some properties of PointCloudSeries3D can only be configured when it is created. These arguments are all optional, and are wrapped in a single object parameter:

 // Example,
const pointCloudSeries3D = Chart3D.addPointSeries({
// Specify point series type as point cloud.
type: PointSeriesTypes3D.Pixelated
})

To learn about available properties, refer to PointSeriesOptions3D.

Frequently used methods:

  • Append data points to series | add
  • Remove all data points from series | clear
  • Configure style of points | setPointStyle
  • Destroy series permanently | dispose

Related information:

There is another series type for visualizing large sets of 3D coordinates with markers: PointSeries3D

PointSeries3D works otherwise same, except that it renders markers with 3D geometry, with a collection of different shape options, like 3D boxes or spheres. For this reason, PointCloudSeries3D is significantly faster than PointSeries3D!

The main difference between PointSeries3D and PointCloudSeries3D is that PointCloudSeries3D don't have depth, so they have same size regardless of how far they are from the camera.

Hierarchy

Properties

_shadingStyle: ColorShadingStyle = _phongShadingStyle

Accessors

  • get draggable(): boolean
  • Returns boolean

  • set draggable(state: boolean): void
  • Parameters

    • state: boolean

    Returns void

Methods

  • Append a single XYZ coordinate or list of coordinates into the series.

     // Example, add single data point.
    pointSeries.add({ x: 0, y: 0, z: 0 })

    // Example, add list of data points.
    pointSeries.add([
    { x: 0, y: 100, z: 50 },
    { x: 10, y: 50, z: 150 },
    { x: 20, y: 75, z: 100 },
    ])

    Performance-wise, it is more efficient to call add just 1 time with an Array of points, instead of calling add several times with 1 point at a time.

    Data points can also be grouped with extra optional properties:

    • size | Point size.
    • color | Point color.
    • value | Point value for dynamic coloring.

    setPointStyle method documentation contains detailed information about each of these features and how to use them.

    Returns

    Object itself for fluent interface.

    Parameters

    Returns PointCloudSeries3D

  • Attach object to an legendBox entry

    Returns

    Series itself for fluent interface

    Parameters

    • entry: LegendBoxEntry<UIBackground>

      Object which has to be attached

    • toggleVisibilityOnClick: boolean = true

      Flag that indicates whether the Attachable should be hidden or not, when its respective Entry is clicked.

    • matchStyleExactly: boolean = false

      By default, entries are assigned a smooth looking gradient based on the component color. If this flag is true, then this is skipped, and exact component solid fill is used instead.

    Returns PointCloudSeries3D

  • Clear all previously pushed data points from the series.

     // Example usage
    pointSeries.clear()

    Returns

    Object itself for fluent interface.

    Returns PointCloudSeries3D

  • Permanently destroy the component.

    To fully allow Garbage-Collection to free the resources used by the component, make sure to remove any references to the component and its children in application code.

    let chart = ...ChartXY()
    let axisX = chart.getDefaultAxisX()
    // Dispose Chart, and remove all references so that they can be garbage-collected.
    chart.dispose()
    chart = undefined
    axisX = undefined

    Returns

    Object itself for fluent interface

    Returns PointCloudSeries3D

  • Get component highlight animations enabled or not.

    Returns

    Animation enabled?

    Returns boolean

  • Get whether series is taken into account with automatic scrolling and fitting of attached axes.

    By default, this is true for all series.

    Returns

    true default, axes will take series into account in scrolling and fitting operations. false, axes will ignore series boundaries.

    Returns boolean

  • Returns

    Whether Cursor is enabled or not

    Returns boolean

  • Beta

    Get override behavior for when this series is formatted to be displayed by a cursor.

    Returns

    Override callback or undefined

    Introduced in v6.0.0, the state and definition of this API is not finalized. It may change in future versions without regard to backwards compatibility if there is significant cause from user feedback.
    

    Returns undefined | CursorFormatterSeriesOverride<SolveResult3D>

  • Get 3D depth test enabled for this series.

    By default this is enabled, meaning that any series that is rendered after this series and is behind this series will not be rendered.

    Can be disabled to alter 3D rendering behavior.

    Returns

    Depth test enabled?

    Returns boolean

  • Get theme effect enabled on component or disabled.

    A theme can specify an Effect to add extra visual oomph to chart applications, like Glow effects around data or other components. Whether this effect is drawn above a particular component can be configured using the setEffect method.

     // Example, disable theme effect from a particular component.
    Component.setEffect(false)

    For the most part, theme effects are enabled by default on most components.

    Theme effect is configured with effect property.

    Returns

    Boolean that describes whether drawing the theme effect is enabled around the component or not.

    Returns boolean

  • Get state of component highlighting.

    In case highlight animations are enabled, this method returns the unanimated highlight value.

    Returns

    Number between 0 and 1, where 1 is fully highlighted.

    Returns number

  • Get boolean flag for whether object should highlight on mouse hover

    Returns

    Boolean for if object should highlight on mouse hover or not.

    Returns boolean

  • Beta

    Set icon of the chart component. This is displayed in legends and by default cursor formatters.

    Returns

    Icon object or undefined. Released as beta feature in v5.2.0 feature may still change according to user feedback and experiences.

    Returns undefined | Icon

  • Get the name of the Component.

    Returns

    The name of the Component.

    Returns string

  • Get amount of points that series currently has.

    Returns

    Number of points

    Returns number

  • Get boolean flag that is true when a Pointer device is over the chart component. In order for this method to work, the components pointer event tracking must be enabled (getPointerEvents)

    Returns

    Boolean

    Returns boolean

  • Get whether element can be target of pointer events or not.

    Returns

    Pointer events state

    Returns boolean

  • Get element visibility.

    Returns

    true when element is set to be visible and false otherwise.

    Returns boolean

  • Returns

    Max X value of the series

    Returns number

  • Returns

    Min X value of the series

    Returns number

  • Returns

    Max Y value of the series

    Returns number

  • Returns

    Min Y value of the series

    Returns number

  • Returns

    Max Z value of the series

    Returns number

  • Returns

    Min Z value of the series

    Returns number

  • Check whether the object is disposed. Disposed objects should not be used!

    Returns

    true if object is disposed.

    Returns boolean

  • Set component highlight animations enabled or not. For most components this is enabled by default.

     // Example usage, disable highlight animations.
    component.setAnimationHighlight(false)

    Returns

    Object itself

    Parameters

    • enabled: boolean

      Animation enabled?

    Returns PointCloudSeries3D

  • Set whether series is taken into account with automatic scrolling and fitting of attached axes.

    By default, this is true for all series.

    By setting this to false, any series can be removed from axis scrolling/fitting.

     // Example syntax, remove series from automatic scrolling / fitting.
    LineSeries.setAutoScrollingEnabled(false)

    Returns

    Object itself for fluent interface.

    Parameters

    • enabled: boolean

      true default, axes will take series into account in scrolling and fitting operations. false, axes will ignore series boundaries.

    Returns PointCloudSeries3D

  • Set Color Shading Style for series.

    Shading style changes the visual style of the rendering. See ColorShadingStyles for available shading styles.

    Use Simple color shading style:

    series3D.setShadingStyle(new ColorShadingStyles.Simple())
    

    Use Phong color shading style:

    series3D.setShadingStyle(new ColorShadingStyles.Phong())
    

    Configuring specular highlight for Phong shading style:

    series3D.setShadingStyle(new ColorShadingStyles.Phong({
    specularReflection: 0.5,
    specularColor: ColorRGBA(255, 255, 255)
    }))

    Returns

    Object itself for fluent interface.

    Parameters

    Returns PointCloudSeries3D

  • Configure whether cursors should pick on this particular series or not.

     // Example, prevent chart auto cursor from snapping to a series.
    LineSeries.setCursorEnabled(false)

    Related API:

    • ChartXY.setAutoCursorMode | configure behavior when auto cursor is visible.

    Parameters

    • state: boolean

    Returns PointCloudSeries3D

  • Beta

    Set override behavior for when this series is formatted to be displayed by a cursor. This can be used to alter and expand on cursor formatting done for a specific series, either by the library's default cursor formatters or even the users own cursor formatters defined on chart level.

     // Example syntax, add extra row to display a custom data property
    series.setCursorFormattingOverride((hit, before) => {
    if (!isHitSampleXY(hit)) return before
    const customPropertyValue = data[hit.iSample].customProperty
    return [...before, ['ASD', '', customPropertyValue.toFixed(3)]]
    })

    To use this with users own cursor formatters, you can use useCursorFormatterSeriesOverride:

     // Example syntax, define custom cursor formatting with support for series overrides
    chart.setCursorFormatting((_, __, hits) => {
    return [
    [hits[0].axisX.formatValue(hits[0].x)],
    ...hits.map((hit) => useCursorFormatterSeriesOverride(hit, [['Y:', '', hit.axisY.formatValue(hit.y)]])).flat(),
    ]
    })

    Returns

    Object itself.

    Introduced in v6.0.0, the state and definition of this API is not finalized. It may change in future versions without regard to backwards compatibility if there is significant cause from user feedback.
    

    Parameters

    Returns PointCloudSeries3D

  • Set 3D depth test enabled for this series.

    By default this is enabled, meaning that any series that is rendered after this series and is behind this series will not be rendered.

    Can be disabled to alter 3D rendering behavior.

     // Example syntax, disable depth test.
    pointSeries3D.setDepthTestEnabled(false)

    Returns

    Object itself for fluent interface.

    Parameters

    • enabled: boolean

      Depth test enabled?

    Returns PointCloudSeries3D

  • Set theme effect enabled on component or disabled.

    A theme can specify an Effect to add extra visual oomph to chart applications, like Glow effects around data or other components. Whether this effect is drawn above a particular component can be configured using the setEffect method.

     // Example, disable theme effect from a particular component.
    Component.setEffect(false)

    For the most part, theme effects are enabled by default on most components.

    Theme effect is configured with effect property.

    Returns

    Object itself.

    Parameters

    • enabled: boolean

      Theme effect enabled

    Returns PointCloudSeries3D

  • Set state of component highlighting.

     // Example usage

    component.setHighlight(true)

    component.setHighlight(0.5)

    If highlight animations are enabled (which is true by default), the transition will be animated. As long as the component is highlighted, the active highlight intensity will be animated continuously between 0 and the configured value. Highlight animations can be disabled with setAnimationHighlight

    Returns

    Object itself

    Parameters

    • highlight: number | boolean

      Boolean or number between 0 and 1, where 1 is fully highlighted.

    Returns PointCloudSeries3D

  • Set highlight on mouse hover enabled or disabled.

    Mouse interactions have to be enabled on the component for this to function as expected. See setPointerEvents for more information.

    Returns

    Object itself for fluent interface.

    Parameters

    • state: boolean

      True if highlighting on mouse hover, false if no highlight on mouse hover

    Returns PointCloudSeries3D

  • Beta

    Set icon of the chart component. This is displayed in legends and by default cursor formatters.

     const image = new Image()
    image.src = 'image.png'
    const icon = chart.engine.addCustomIcon(image)
    ChartComponent.setIcon(icon)

    Returns

    Object itself.

    Released as beta feature in v5.2.0 feature may still change according to user feedback and experiences.
    

    Parameters

    • icon: undefined | Icon

      Icon

    Returns PointCloudSeries3D

  • Sets the name of the Component updating attached LegendBox entries

    Returns

    Object itself

    Parameters

    • name: string

      Name of the Component

    Returns PointCloudSeries3D

  • Set point style of Series.

    Example syntax:

     // Example syntax, Specify new style
    pointCloudSeries3D.setPointStyle( new PointStyle3D.Pixelated({
    size: 10,
    fillStyle: new SolidFill({ color: ColorHEX('#FFF') })
    }) )
     // Example syntax, Change point color
    pointCloudSeries3D.setPointStyle( (pointStyle) => pointStyle
    .setFillStyle( new SolidFill({ color: ColorHEX('#FFF') }) )
    )
     // Example syntax, Change point size
    pointCloudSeries3D.setPointStyle( (pointStyle) => pointStyle
    .setSize( 10 )
    )

    Point coloring:

    Color of points is configured by the fillStyle property of active point style.

    Here is a list of all supported fill styles with feature descriptions and example syntax:

    SolidFill:

    Solid color for all points in series.

     // Example syntax, solid points color.
    pointCloudSeries3D.setPointStyle(new PointStyle3D.Pixelated({
    fillStyle: new SolidFill({ color: ColorRGBA(255, 0, 0) }),
    size: 10
    }))

    PalettedFill:

    Look-up dynamic per-point color based on a look up property (number) and a color look up table (LUT).

     // Example syntax, dynamic points color.
    pointCloudSeries3D.setPointStyle(new PointStyle3D.Pixelated({
    fillStyle: new PalettedFill({
    // lookUpProperty defines basis of selecting look up value (number).
    lookUpProperty: 'value',
    // lut defines table for mapping look up value (number) to a color.
    lut: new LUT({
    interpolate: true,
    steps: [
    { value: 0, color: ColorRGBA(0, 0, 0) },
    { value: 1, color: ColorRGBA(255, 0, 0) }
    ]
    })
    }),
    size: 10
    }))

    pointCloudSeries3D supports several different look-up modes:

    lookUpProperty: 'value':

    IMPORTANT: In order to use value property on data points, the feature has to be explicitly activated when the series is created:

     // Example syntax, enable individual data point values.
    const pointCloudSeries3D = chart3D.addPointSeries({
    type: PointSeriesTypes3D.Pixelated,
    individualLookupValuesEnabled: true
    })

    value property is then added for every data point along side x, y and z:

     // Example syntax, individual data point values.
    pointCloudSeries3D.add([
    { x: 0, y: 0, z: 0, value: 0 },
    { x: 1, y: 0, z: 2, value: 1 },
    ])

    Look-up value is read from data point value property.

    lookUpProperty: 'x':

    Look-up value is set to data point x coordinate on Axis.

    lookUpProperty: 'y':

    Look-up value is set to data point y coordinate on Axis.

    lookUpProperty: 'z':

    Look-up value is set to data point z coordinate on Axis.

    IndividualPointFill:

    Supply individual color for each data point.

    IMPORTANT: In order to use IndividualPointFill, the feature has to be explicitly activated when the series is created:

     // Example syntax, enable individual data point colors.
    const pointCloudSeries3D = chart3D.addPointSeries({
    type: PointSeriesTypes3D.Pixelated,
    individualPointColorEnabled: true
    })

    color property is then added for every data point along side x, y and z:

     // Example syntax, individual data point colors.
    pointCloudSeries3D.add([
    { x: 0, y: 0, z: 0, color: ColorRGBA(255, 0, 0) },
    { x: 1, y: 0, z: 2, color: ColorRGBA(0, 255, 0) },
    ])

    Point size:

    Size of points is configured by the size property of active point style.

    If required, points can also be individually sized by adding a size property to data points.

    IMPORTANT: In order to use size property, the feature has to be explicitly activated when the series is created:

     // Example syntax, enable individual data point size.
    const pointCloudSeries3D = chart3D.addPointSeries({
    type: PointSeriesTypes3D.Pixelated,
    individualPointSizeEnabled: true
    })

    size property is then added for every data point along side x, y and z:

     // Example syntax, individual data point sizes.
    pointCloudSeries3D.add([
    { x: 0, y: 0, z: 0, size: 5 },
    { x: 1, y: 0, z: 2, size: 10 },
    ])

    Returns

    Object itself for fluent interface

    Parameters

    Returns PointCloudSeries3D

  • Set whether element can be target of pointer events or not.

    Disabling pointer events means that the objects below this component can be interacted through it.

    Returns

    Object itself for fluent interface

    Parameters

    • state: boolean

      Specifies state of mouse interactions

    Returns PointCloudSeries3D

  • Set element visibility.

    Returns

    Object itself.

    Parameters

    • state: boolean

      true when element should be visible and false when element should be hidden.

    Returns PointCloudSeries3D

  • Match legend entry style to reflect components own style.

    Parameters

    • entry: LegendBoxEntry<UIBackground>
    • matchStyleExactly: boolean = false

      By default, entries are assigned a smooth looking gradient based on the component color. If this flag is true, then this is skipped, and exact component solid fill is used instead.

    Returns void