JavaScript Point Line 3D Chart

Our team demonstrates how to create a JavaScript 3D Point Line Chart using SciChart.js, capable of creating detailed 3D JavaScript Charts.

Fullscreen

Edit

 Edit

Docs

drawExample.ts

Copy to clipboard
Minimise
Fullscreen
1// Loading ... 

Point Line 3D Chart with JavaScript

Overview

This example demonstrates a sophisticated 3D point-line chart built with SciChart.js using JavaScript. It visualizes spectral data generated via a Fourier Transform (using the Radix2FFT algorithm) and displays the frequency domain in a dynamic 3D scene. The example illustrates how to integrate complex data processing and 3D rendering without relying on frameworks such as Angular or React.

Technical Implementation

The core of the implementation is the creation of a SciChart 3D surface using the Creating your first SciChartSurface3D guide. The example sets up a custom 3D world with defined dimensions and configures the camera using the CameraController. Interaction is enhanced by modifiers such as the MouseWheelZoomModifier3D, OrbitModifier3D (see OrbitModifier3D for details), and ResetCamera3DModifier which enable intuitive zooming, panning, and orbiting around the data. Additionally, three 3D NumericAxes are configured using the NumericAxis3D API. Data points are enriched with custom metadata that maps spectral intensities to color gradients. This metadata formatting leverages a gradient-stop approach and a utility function to convert CSS color strings into UInt ARGB values, ensuring accurate per-point styling. The renderable series is then created using the Point Line 3D Chart Type for a smooth visual output.

Features and Capabilities

Key features include the generation of dynamic spectral data, efficient FFT-based signal processing, and advanced 3D rendering. The example further demonstrates how to customize chart appearance through adjustable stroke thickness, opacity, and per-point metadata coloring. A separate heatmap legend, created via the HeatmapLegend API, provides a visual mapping of data values to color scales, enhancing interpretability.

Integration and Best Practices

This implementation serves as a template for integrating high-performance 3D charts into applications using only JavaScript. Best practices demonstrated here include organizing the code into clear asynchronous initialization steps, optimizing performance by limiting the number of rendered points, and applying efficient color parsing routines. Developers can use these techniques along with detailed SciChart.js documentation to customize and extend the chart’s functionality as needed.

SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL.