Learn how to create a detailed JavaScript 3D Surface Mesh Chart using SciChart.js, and our High Performance JavaScript 3D Chart Library
This example demonstrates how to create a 3D surface mesh chart using SciChart.js in JavaScript. The example constructs a heightmap using a 2D array and renders it with a dynamic color gradient, providing an interactive 3D visualization. Developers can learn how to efficiently set up a 3D chart project as explained in the 3D Tutorial 01.
The implementation begins with the creation of a SciChart3DSurface in plain JavaScript, leveraging the high-performance WebAssembly context (wasmContext) for rendering. The camera is precisely positioned using the CameraController and Vector3 classes, as documented in The SciChartSurface Camera. Next, the world dimensions and three numeric axes are defined with NumericAxis3D, which is further detailed in the Numeric Axis in SciChart3D guide. A uniform grid heightmap is then generated using the helper function zeroArray2D and populated with sine wave calculations. This data is subsequently wrapped in a UniformGridDataSeries3D to feed into the renderable series. For color mapping, the example employs a GradientColorPalette to create custom gradient fills, which you can read more about in the GradientColorPalette documentation. Finally, the surface mesh is rendered as a solid wireframe using SurfaceMeshRenderableSeries3D.
The example integrates several advanced features including interactive chart modifiers such as MouseWheelZoomModifier3D, OrbitModifier3D, ResetCamera3DModifier, and TooltipModifier3D. These modifiers offer an intuitive user experience for exploring the 3D visualization. For additional details on interactivity, refer to the Tooltip Modifier 3D documentation. The use of WebAssembly (wasmContext) and WebGL-based rendering ensures high performance even with complex 3D datasets, following best practices as described in the Getting Started with SciChart JS guide.
This example emphasizes a clean integration approach by using JavaScript without reliance on frameworks like React or Angular. It showcases how to directly manipulate the SciChart3DSurface and its components to achieve desired visual effects. Additionally, developers are encouraged to explore performance optimization techniques through efficient WebGL rendering and proper use of the wasmContext, as outlined in the SciChart JS User Manual. By following these practices, one can build highly responsive and visually rich 3D charts.

Create detailed JavaScript 3D Bubble Chart using SciChart's 5-star rated JavaScript chart library. Supports large datasets. Get your free demo now.

Create detailed JavaScript 3D Line Chart using SciChart's 5-star rated JavaScript chart library. Supports large datasets. Get your free demo now.

Demonstrating the capability of SciChart.js to create JavaScript 3D Point Cloud charts and visualize LiDAR data from the UK Defra Survey.

Demonstrating the capability of SciChart.js to create a composite 2D & 3D Chart application. An example like this could be used to visualize Tenor curves in a financial setting, or other 2D/3D data combined on a single screen.

Design a JavaScript 3D Surface Mesh Chart with SciChart.js - feature-rich JavaScript chart library. Represent 2D data in a 3D map. Get your free demo.

Create detailed JavaScript 3D Column Chart using SciChart's 5-star rated JavaScript chart library. Supports large datasets

Create advanced JavaScript 3D Styling Demo using SciChart's 5-star rated JavaScript chart library. Explore axis styling, plane visibility and multiple point markers.