3D Scatter.

PRO

Show three continuous measurements as points in space.

Live preview34 feature examples

LIVE EXAMPLE

3D observations

Match the page theme
Interact with the chart to see selection and range-change results here.
OptionsChanges are reflected in the preview and code.
Appearance and style4
Legend and interaction13
Title and dimensions3

Show three continuous measurements as points in space. All values are sample data.

View code
Current preview
<div id="chart-container" style="width: 100%; min-width: 0;"></div>

<script type="module">
  import { defineCustomElement as define0 } from '@syidax/advanced-pro/components/sy-scatter-3d.js';
  define0();

  // Pro: complete registerLicense at app startup using your issued certificate.
  // The website preview certificate is not for use in customer apps.
  const specs = [
    {
      "id": "example-chart",
      "tag": "sy-scatter-3d",
      "props": {
        "data": [
          {
            "id": "p0",
            "label": "Measurement 1",
            "x": 0,
            "y": 0,
            "z": 1,
            "value": 0,
            "color": "#8263d9"
          },
          {
            "id": "p1",
            "label": "Measurement 2",
            "x": 1,
            "y": 0,
            "z": 8,
            "value": 1,
            "color": "#8263d9"
          },
          {
            "id": "p2",
            "label": "Measurement 3",
            "x": 2,
            "y": 0,
            "z": 6,
            "value": 2,
            "color": "#8263d9"
          },
          {
            "id": "p3",
            "label": "Measurement 4",
            "x": 3,
            "y": 0,
            "z": 4,
            "value": 3,
            "color": "#8263d9"
          },
          {
            "id": "p4",
            "label": "Measurement 5",
            "x": 4,
            "y": 0,
            "z": 2,
            "value": 4,
            "color": "#8263d9"
          },
          {
            "id": "p5",
            "label": "Measurement 6",
            "x": 5,
            "y": 0,
            "z": 9,
            "value": 5,
            "color": "#8263d9"
          },
          {
            "id": "p6",
            "label": "Measurement 7",
            "x": 0,
            "y": 1,
            "z": 7,
            "value": 6,
            "color": "#8263d9"
          },
          {
            "id": "p7",
            "label": "Measurement 8",
            "x": 1,
            "y": 1,
            "z": 5,
            "value": 7,
            "color": "#8263d9"
          },
          {
            "id": "p8",
            "label": "Measurement 9",
            "x": 2,
            "y": 1,
            "z": 3,
            "value": 8,
            "color": "#239c91"
          },
          {
            "id": "p9",
            "label": "Measurement 10",
            "x": 3,
            "y": 1,
            "z": 1,
            "value": 9,
            "color": "#239c91"
          },
          {
            "id": "p10",
            "label": "Measurement 11",
            "x": 4,
            "y": 1,
            "z": 8,
            "value": 10,
            "color": "#239c91"
          },
          {
            "id": "p11",
            "label": "Measurement 12",
            "x": 5,
            "y": 1,
            "z": 6,
            "value": 11,
            "color": "#239c91"
          },
          {
            "id": "p12",
            "label": "Measurement 13",
            "x": 0,
            "y": 2,
            "z": 4,
            "value": 12,
            "color": "#239c91"
          },
          {
            "id": "p13",
            "label": "Measurement 14",
            "x": 1,
            "y": 2,
            "z": 2,
            "value": 13,
            "color": "#239c91"
          },
          {
            "id": "p14",
            "label": "Measurement 15",
            "x": 2,
            "y": 2,
            "z": 9,
            "value": 14,
            "color": "#239c91"
          },
          {
            "id": "p15",
            "label": "Measurement 16",
            "x": 3,
            "y": 2,
            "z": 7,
            "value": 15,
            "color": "#239c91"
          },
          {
            "id": "p16",
            "label": "Measurement 17",
            "x": 4,
            "y": 2,
            "z": 5,
            "value": 16,
            "color": "#e99954"
          },
          {
            "id": "p17",
            "label": "Measurement 18",
            "x": 5,
            "y": 2,
            "z": 3,
            "value": 17,
            "color": "#e99954"
          },
          {
            "id": "p18",
            "label": "Measurement 19",
            "x": 0,
            "y": 3,
            "z": 1,
            "value": 18,
            "color": "#e99954"
          },
          {
            "id": "p19",
            "label": "Measurement 20",
            "x": 1,
            "y": 3,
            "z": 8,
            "value": 19,
            "color": "#e99954"
          },
          {
            "id": "p20",
            "label": "Measurement 21",
            "x": 2,
            "y": 3,
            "z": 6,
            "value": 20,
            "color": "#e99954"
          },
          {
            "id": "p21",
            "label": "Measurement 22",
            "x": 3,
            "y": 3,
            "z": 4,
            "value": 21,
            "color": "#e99954"
          },
          {
            "id": "p22",
            "label": "Measurement 23",
            "x": 4,
            "y": 3,
            "z": 2,
            "value": 22,
            "color": "#e99954"
          },
          {
            "id": "p23",
            "label": "Measurement 24",
            "x": 5,
            "y": 3,
            "z": 9,
            "value": 23,
            "color": "#e99954"
          }
        ],
        "marker": "sphere",
        "width": 640,
        "height": 360,
        "brandPosition": "bottom-right",
        "brandLogo": ""
      }
    }
  ];
  const container = document.querySelector('#chart-container');
  const elements = specs.map(({ tag, id, props }) => {
    const element = document.createElement(tag);
    element.id = id;
    Object.assign(element, props);
    element.setAttribute('aria-label', 'scatter-3d example chart');
    return element;
  });
  container.replaceChildren(...elements);
  const chart = elements.at(-1);
  const onEvent = event => {
    console.log('pointClick', event.detail);
  };
  chart.addEventListener('pointClick', onEvent);
  const observer = new ResizeObserver(([entry]) => {
    const width = Math.max(160, Math.floor(entry.contentRect.width));
    elements.forEach(element => { element.width = width; });
  });
  observer.observe(container);

  // In an SPA, call this function when the view is disposed.
  function disposeChart() {
    observer.disconnect();
    chart.removeEventListener('pointClick', onEvent);
    container.replaceChildren();
  }
</script>

Usage and data

#

Explore clusters and outliers in multivariate observations.

Rotate the view to inspect points that overlap in a 2D projection. State the unit for each axis.

Data contract

PropertyInput format
dataAn array of { x, y, z, value?, label? }.
markersphere or cube.

Updating data

Assign a new array or object to the property instead of mutating values inside an array. Chart events provide selection results through event.detail. When disposing of the view, clean up ResizeObserver and event listeners registered by your app.

Feature examples

#

Try 34 interactive feature examples and inspect their code. Select “Edit in preview” to combine more options in the settings panel above.

Cube symbolsPRO

Represent points in space with cube markers.

Interact with the chart to see results here.
View code

Dense regionsPRO

Inspect dense regions using marker opacity.

Interact with the chart to see results here.
View code

Inspect values with the pointerPRO

Point to data to view the value at that location.

Interact with the chart to see results here.
View code

Crosshair trackingPRO

Move the pointer to read horizontal and vertical coordinates alongside values.

Interact with the chart to see results here.
View code

Replay animationPRO

Redraw the same example to inspect its initial display animation.

Interact with the chart to see results here.
View code

AccessibilityPRO

Compare 1 examples of Accessibility. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

AnimationPRO

Compare 3 examples of Animation. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

AxesPRO

Compare 2 examples of Axes. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

CameraPRO

Compare 3 examples of Camera. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

ColorPRO

Compare 4 examples of Color. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

CrosshairPRO

Compare 3 examples of Crosshair. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Data inputPRO

Compare 6 examples of Data input. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

LegendPRO

Compare 1 examples of Legend. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

LightingPRO

Compare 3 examples of Lighting. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

LocalePRO

Compare 1 examples of Locale. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

MarkersPRO

Compare 3 examples of Markers. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Large datasetsPRO

Compare 2 examples of Large datasets. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

SizePRO

Compare 2 examples of Size. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

TooltipPRO

Compare 13 examples of Tooltip. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Zoom and panPRO

Compare 3 examples of Zoom and pan. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Camera ChangePRO

Compare 1 examples of Camera Change. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Context menuPRO

Compare 1 examples of Context menu. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

HoverPRO

Compare 1 examples of Hover. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Point ClickPRO

Compare 1 examples of Point Click. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Data context menuPRO

Compare 1 examples of Data context menu. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

RuntimePRO

Compare 4 examples of Runtime. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Selection ChangedPRO

Compare 1 examples of Selection Changed. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

CameraPRO

Compare 1 examples of Camera. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

ExportPRO

Compare 1 examples of Export. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Read coordinates and dataPRO

Compare 1 examples of Read coordinates and data. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Runtime APIPRO

Compare 2 examples of Runtime API. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

OptionalPRO

Compare 1 examples of Optional. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Scatter3DPRO

Compare 3 examples of Scatter3D. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

Streaming · Add and update live dataPRO

Compare 3 examples of Add and update live data. Buttons and options update both the live result and source code.

Interact with the chart to see results here.
View code

API reference

#

The full public API for sy-scatter-3d. Pass objects and arrays as JavaScript properties. Select a name to view usage code and type definitions.

Key properties

Attribute / PropertyType / DefaultDescription
Scatter3DDataDefault: undefinedAn array of { x, y, z, value?, label? }.
numberDefault: 800Chart width in pixels. Update with ResizeObserver when the container changes.
numberDefault: 480Chart height in pixels.
brandLogostringDefault: undefinedThe default is the Syidax logo. With the Pro chart.branding entitlement, use none or a PNG, JPEG, or WebP data URL.
brandPosition'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'Default: 'bottom-right'The corner where the logo is anchored. Applies equally to Community and Pro, on screen and in image exports.
numberDefault: 1Set as an HTML attribute or JavaScript property. type: number.
booleanDefault: falseWhether to show a legend for series or items.
'sphere'|'cube'Default: 'sphere'sphere or cube.
markerRadiusnumberDefault: .06Set as an HTML attribute or JavaScript property. type: number.
markerDetail0|1|2Default: 1Set as an HTML attribute or JavaScript property. type: 0|1|2.
chartTitlestringDefault: undefinedThe title inside the chart. Explain the data's unit and meaning alongside it.
chartSubtitlestringDefault: undefinedThe subtitle inside the chart.
CartesianTooltipInputDefault: undefinedTooltip settings for pointer-driven values, position, and content.
tooltipEnabledbooleanDefault: trueSet as an HTML attribute or JavaScript property. type: boolean.
CartesianCrosshairInputDefault: undefinedPass as a JavaScript property. type: CartesianCrosshairInput.
animatedbooleanDefault: falseWhether to animate initial display and data changes.
animationDurationnumberDefault: 600Animation duration in milliseconds.
animationEasingScatter3DEasingDefault: 'ease-out'Allowed values: linear, ease-out, ease-in, ease-in-out. Default: 'ease-out'.
animationTypeHeatmapAnimationTypeDefault: undefinedAllowed values: initial, update. Default: undefined.
Other properties 19
Attribute / PropertyType / DefaultDescription
HeatmapColorInputDefault: 'viridis'Pass as a JavaScript property. type: HeatmapColorInput.
colorDomainScatter3DDomainDefault: undefinedPass as a JavaScript property. type: Scatter3DDomain.
missingColorstringDefault: '#94a3b8'Set as an HTML attribute or JavaScript property. type: string.
scatterSizeScene3DVectorDefault: [2,2,2]Pass as a JavaScript property. type: Scene3DVector.
stringDefault: 'en-US'Set as an HTML attribute or JavaScript property. type: string.
Scatter3DAxesOptions|boolean|stringDefault: undefinedPass as a JavaScript property. type: Scatter3DAxesOptions|boolean|string.
Scene3DMaterialOptionsDefault: undefinedPass as a JavaScript property. type: Scene3DMaterialOptions.
Scene3DLightingOptionsDefault: undefinedPass as a JavaScript property. type: Scene3DLightingOptions.
Scene3DCameraOptions|stringDefault: undefinedPass as a JavaScript property. type: Scene3DCameraOptions|string.
Orbit3DOptions|boolean|stringDefault: undefinedPass as a JavaScript property. type: Orbit3DOptions|boolean|string.
showEmptybooleanDefault: trueWhether the component shows its own empty-geometry notice.
activeColorstringDefault: '#f59e0b'Set as an HTML attribute or JavaScript property. type: string.
enableMouseTrackingbooleanDefault: trueSet as an HTML attribute or JavaScript property. type: boolean.
tooltipFormat(detail:Scatter3DHitDetail)=>stringDefault: undefinedPass as a JavaScript property. type: (detail:Scatter3DHitDetail)=>string.
crosshairSnapDistancenumberDefault: 12Set as an HTML attribute or JavaScript property. type: number.
streamSourceScatter3DStreamSourceDefault: undefinedA stream source for live data. Check the contract for the specific type.
streamMaxnumberDefault: undefinedThe maximum number of streaming data points to retain.
Scatter3DEngineModeDefault: 'auto'Renderer selection: auto, standard, or pro. Engine selection is separate from permission to use a Pro chart type.
Scatter3DUnavailableBehaviourDefault: 'fallback'Allowed values: fallback, error. Default: 'fallback'.
Events 16
EventsDetail typeDescription
Scatter3DRenderResult&{tier:Scatter3DEngineTier}Emits rendering results in detail when chart drawing completes.
Scatter3DHitDetailA point selection event. Read the selected data and index from CustomEvent.detail.
Scatter3DHitDetail|nullCustomEvent.detail type: Scatter3DHitDetail|null. Event names are case-sensitive.
Scatter3DSelectionChangeEventDetailCustomEvent.detail type: Scatter3DSelectionChangeEventDetail. Event names are case-sensitive.
ChartPointContextMenuEventDetail<Scatter3DHitDetail>CustomEvent.detail type: ChartPointContextMenuEventDetail<Scatter3DHitDetail>. Event names are case-sensitive.
Scatter3DCameraChangeEventDetailCustomEvent.detail type: Scatter3DCameraChangeEventDetail. Event names are case-sensitive.
Scatter3DCrosshairDetail|nullCustomEvent.detail type: Scatter3DCrosshairDetail|null. Event names are case-sensitive.
{count:number;replaced:number}CustomEvent.detail type: {count:number;replaced:number}. Event names are case-sensitive.
{dropped:number}CustomEvent.detail type: {dropped:number}. Event names are case-sensitive.
CartesianTooltipEventDetailWhether to display the built-in tooltip.
voidCustomEvent.detail type: void. Event names are case-sensitive.
CartesianTooltipActionEventDetailCustomEvent.detail type: CartesianTooltipActionEventDetail. Event names are case-sensitive.
voidCustomEvent.detail type: void. Event names are case-sensitive.
voidCustomEvent.detail type: void. Event names are case-sensitive.
voidCustomEvent.detail type: void. Event names are case-sensitive.
{message:string}CustomEvent.detail type: {message:string}. Event names are case-sensitive.
Methods 44

Stencil methods return Promises. Use await within an async function to read the result.

Method / ArgumentsReturn typeDescription
point: Scatter3DDatumPromise<void>An asynchronous method. Check the argument and return types below.
points: ReadonlyArray<Scatter3DDatum>Promise<void>An asynchronous method. Check the argument and return types below.
points: ReadonlyArray<Scatter3DDatum>Promise<void>An asynchronous method. Check the argument and return types below.
count: numberPromise<void>An asynchronous method. Check the argument and return types below.
count: numberPromise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
points: ReadonlyArray<Scatter3DDatum>Promise<void>An asynchronous method. Check the argument and return types below.
Promise<Scatter3DStreamSource|undefined>An asynchronous method. Check the argument and return types below.
data: Scatter3DDataPromise<void>An asynchronous method. Check the argument and return types below.
Promise<Scatter3DDatum[]>An asynchronous method. Check the argument and return types below.
Promise<{ points: number; validPoints: number; missingCoordinates: number; invalidCoordinates: number; missingValues: number; }>An asynchronous method. Check the argument and return types below.
Promise<Scatter3DGeometry>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
options: {enabled?:boolean;duration?:number;easing?:Scatter3DEasing;type?:HeatmapAnimationType}Promise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<Scene3DCameraOptions>An asynchronous method. Check the argument and return types below.
options: Scene3DCameraOptionsPromise<void>An asynchronous method. Check the argument and return types below.
projection: Scene3DProjectionPromise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
padding?: numberPromise<void>An asynchronous method. Check the argument and return types below.
factor: numberPromise<void>A factor below one moves closer. Perspective changes distance; orthographic changes zoom.
azimuth: number, polar?: numberPromise<void>An asynchronous method. Check the argument and return types below.
x: number, y: numberPromise<void>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<Scatter3DRenderResult>An asynchronous method. Check the argument and return types below.
Promise<Scatter3DEngineTier>An asynchronous method. Check the argument and return types below.
Promise<string|undefined>An asynchronous method. Check the argument and return types below.
Promise<ChartEngineStatus>Requested engine vs what runs, and why (CHART-ADD-08); a frozen or unlicensed chart reports the license outcome.
Promise<void>Without the grant (or while frozen) nothing is recycled: no GPU work starts.
cssX: number, cssY: numberPromise<Scatter3DHitDetail|null>An asynchronous method. Check the argument and return types below.
index: numberPromise<Scatter3DHitDetail|null>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<Scatter3DSelection>An asynchronous method. Check the argument and return types below.
index: numberPromise<CartesianTooltipEventDetail|null>An asynchronous method. Check the argument and return types below.
index: numberPromise<CartesianTooltipEventDetail|null>An asynchronous method. Check the argument and return types below.
Promise<void>An asynchronous method. Check the argument and return types below.
index: numberPromise<boolean>An asynchronous method. Check the argument and return types below.
request: CartesianCrosshairShowRequest&{dataZ?:number}Promise<boolean>Quiet source-coordinate synchronization. A cloud has no interpolated surface between its points.
Promise<void>An asynchronous method. Check the argument and return types below.
Promise<ChartDataTable>An asynchronous method. Check the argument and return types below.
options?: CsvOptionsPromise<string>An asynchronous method. Check the argument and return types below.
Promise<string>An asynchronous method. Check the argument and return types below.