Overview
Surface charts visualize three-dimensional data as continuous surfaces in 3D space. Each point on the surface represents an XYZ coordinate, creating a mesh that can display mathematical functions, terrain data, heat maps, and other continuous 3D phenomena. TeeChart offers powerful surface rendering with customizable color palettes, wireframe modes, and performance optimizations. Use cases:- Mathematical function visualization
- Terrain and topographic mapping
- Scientific data visualization
- Heat map and density displays
- Engineering simulations
- Financial surface analysis
Series Classes
TSurfaceSeries - Standard 3D surface charts TTriSurfaceSeries - Triangulated irregular network (TIN) surfaces TIsoSurfaceSeries - Isometric surface visualizationKey Properties
| Property | Type | Description |
|---|---|---|
NumXValues | Integer | Number of points in X direction |
NumZValues | Integer | Number of points in Z direction |
UseColorRange | Boolean | Use color gradient based on Y values |
UsePalette | Boolean | Use predefined color palette |
PaletteStyle | TPalettestyle | Palette type: psPale, psStrong, psGrayscale, psRainbow |
StartColor | TColor | Starting color for range |
EndColor | TColor | Ending color for range |
WireFrame | Boolean | Display as wireframe only |
DotFrame | Boolean | Display as dots |
IrregularGrid | Boolean | Support irregular XZ spacing |
Pen | TPen | Customize grid lines |
Smoothing | Boolean | Apply smoothing algorithm |
HideCells | Boolean | Hide back-facing cells |
FastBrush | Boolean | Faster rendering with simplified fills |
Code Examples
Basic Surface Chart
From VCL/TeeNew/SeriesType_Surface.pas:45:Surface from Mathematical Function
From VCL/TeeNew/SeriesType_Surface.pas:61:Color Modes
From VCL/TeeNew/SeriesType_Surface.pas:168:Display Modes
From VCL/TeeNew/SeriesType_Surface.pas:207:Surface with Custom Data
From VCL/TeeNew/Surface_XYZFloat.pas (example pattern):Irregular Surface Grid
From VCL/TeeNew/Surface_Irregular.pas (example pattern):Surface Smoothing
From VCL/TeeNew/Surface_Smoothing.pas (example pattern):Customization Options
Grid Lines and Pen
From VCL/TeeNew/Surface_WirePalette.pas (example pattern):Transparency
From VCL/TeeNew/Surface_Transparency.pas (example pattern):Surface Sides
From VCL/TeeNew/Surface_Sides.pas (example pattern):Hiding Cells
From VCL/TeeNew/Surface_HideCells.pas (example pattern):Advanced Features
Interactive Rotation
From VCL/TeeNew/SeriesType_Surface.pas:24:Contour Display
From VCL/TeeNew/SeriesType_Contour.pas (see Contour Charts page):Performance Optimization
OpenGL Acceleration
From VCL/TeeNew/OpenGL_Surface.pas (example pattern):Surface Nearest Point
From VCL/TeeNew/Tool_SurfaceNearest.pas (example pattern):Dynamic Surface Updates
Export Surface to File
Best Practices
- Start with modest grid size - Large grids (>50x50) can impact performance
- Use FastBrush for real-time - Enable for better performance during updates
- Enable HideCells for rotation - Improves visual quality when rotating
- Choose appropriate color palette - Rainbow for scientific, grayscale for technical
- Consider OpenGL - For large datasets and smooth interaction
- Optimize axis calculations - Use
FastCalcfor better performance
Related Chart Types
- Contour Charts - 2D representation of 3D surface
- 3D Point Charts - Discrete points instead of continuous surface
- TriSurface Charts - Triangulated irregular surfaces
- Heat Maps - 2D color-coded intensity visualization
