syncfusion-wpf-surface-chart

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Implementing Syncfusion WPF Surface Chart

实现Syncfusion WPF Surface Chart

The
SfSurfaceChart
is a three-dimensional surface that connects a set of data points.
SfSurfaceChart
是一个连接一组数据点的三维曲面控件。

When to Use This Skill

何时使用本技能

Use this skill when the user needs to:
  • Visualize three-dimensional data with X, Y, and Z coordinates
  • Create 3D surface plots for mathematical functions or scientific data
  • Display topographical or elevation maps
  • Show contour plots or wireframe visualizations
  • Implement interactive 3D charts with rotation and zooming
  • Render heat maps with color-coded values
  • Visualize relationships between three variables
  • Create mesh or grid-based 3D visualizations
The Syncfusion WPF Surface Chart (SfSurfaceChart) is specifically designed for rendering three-dimensional data in a grid format, supporting multiple visualization types including standard surfaces, wireframes, and contour views.
当用户需要以下功能时,可使用本技能:
  • 可视化带有X、Y、Z坐标的三维数据
  • 为数学函数或科学数据创建3D曲面图
  • 显示地形或海拔地图
  • 展示等高线图或线框可视化效果
  • 实现支持旋转和缩放的交互式3D图表
  • 渲染带颜色编码值的热图
  • 可视化三个变量之间的关系
  • 创建基于网格的3D可视化效果
Syncfusion WPF Surface Chart(SfSurfaceChart)专为以网格格式渲染三维数据而设计,支持多种可视化类型,包括标准曲面、线框和等高线视图。

Component Overview

组件概述

SfSurfaceChart is a powerful 3D visualization control that displays data points in three-dimensional space. It connects data points to create a continuous surface, making it ideal for exploring relationships between three variables.
Key Capabilities:
  • Four surface types: Surface, WireframeSurface, Contour, WireframeContour
  • Multiple data binding methods (ItemsSource or direct data points)
  • Three customizable axes (X, Y, Z)
  • Color bars for value representation
  • Predefined and custom color palettes
  • Interactive rotation, tilting, and zooming
  • Perspective and orthographic camera projections
  • Gradient and solid color rendering
Visual Elements:
  • Surface Header - Title of the chart
  • Wall - Bounding walls around the chart (left, bottom, back)
  • Major Gridlines - Axis gridlines
  • Color Bar - Value range indicator with color mapping
  • Axis Labels - Labels for X, Y, Z axes
  • Axis Headers - Headers for each axis
SfSurfaceChart是一款功能强大的3D可视化控件,可在三维空间中显示数据点。它连接数据点以创建连续曲面,非常适合探索三个变量之间的关系。
核心功能:
  • 四种曲面类型:Surface、WireframeSurface、Contour、WireframeContour
  • 多种数据绑定方式(ItemsSource或直接数据点)
  • 三个可自定义的轴(X、Y、Z)
  • 用于值表示的颜色条
  • 预定义和自定义调色板
  • 交互式旋转、倾斜和缩放
  • 透视和正交相机投影
  • 渐变和纯色渲染
视觉元素:
  • 曲面标题 - 图表的标题
  • 边框 - 图表周围的边界墙(左、底、后)
  • 主网格线 - 轴网格线
  • 颜色条 - 带颜色映射的值范围指示器
  • 轴标签 - X、Y、Z轴的标签
  • 轴标题 - 每个轴的标题

Documentation and Navigation Guide

文档与导航指南

Getting Started

快速入门

📄 Read: references/getting-started.md
  • Assembly reference and installation
  • Visual structure of surface chart elements
  • Creating surface chart from XAML
  • Creating surface chart from code-behind
  • Basic initialization and setup
  • Adding headers, axes, and color bars
  • Complete working examples
  • Theme support and customization
📄 阅读: references/getting-started.md
  • 程序集引用与安装
  • 曲面图元素的视觉结构
  • 从XAML创建曲面图
  • 从代码后置创建曲面图
  • 基本初始化与设置
  • 添加标题、轴和颜色条
  • 完整的工作示例
  • 主题支持与自定义

Surface Types

曲面类型

📄 Read: references/surface-types.md
  • Overview of 4 surface type options
  • Surface - Standard 3D surface visualization
  • WireframeSurface - Mesh/wireframe rendering
  • Contour - Top-down 2D contour view
  • WireframeContour - Mesh contour visualization
  • Choosing the right type for your data
  • Type property configuration
  • Visual comparisons and use cases
📄 阅读: references/surface-types.md
  • 4种曲面类型选项概述
  • Surface - 标准3D曲面可视化
  • WireframeSurface - 网格/线框渲染
  • Contour - 自上而下的2D等高线视图
  • WireframeContour - 网格等高线可视化
  • 为数据选择合适的类型
  • Type属性配置
  • 视觉对比与使用场景

Data Binding

数据绑定

📄 Read: references/data-binding.md
  • Data structure requirements (grid format)
  • Using ItemsSource property with collections
  • XBindingPath, YBindingPath, ZBindingPath mapping
  • RowSize and ColumnSize configuration
  • Direct data input via Data.AddPoints method
  • Creating data models and ViewModels
  • Binding in XAML vs code-behind
  • Performance considerations
📄 阅读: references/data-binding.md
  • 数据结构要求(网格格式)
  • 将ItemsSource属性与集合配合使用
  • XBindingPath、YBindingPath、ZBindingPath映射
  • RowSize和ColumnSize配置
  • 通过Data.AddPoints方法直接输入数据
  • 创建数据模型和ViewModel
  • XAML与代码后置中的绑定
  • 性能注意事项

Axes Configuration

轴配置

📄 Read: references/axes-configuration.md
  • X, Y, and Z axis setup
  • Default vs explicit axis definitions
  • Header and HeaderTemplate customization
  • LabelTemplate and LabelFormat options
  • Minimum and Maximum range settings
  • Interval and tick configuration
  • GridLines customization (stroke, thickness)
  • EdgeLabelsDrawingMode options
  • RangePadding settings
  • Complete axis styling examples
📄 阅读: references/axes-configuration.md
  • X、Y、Z轴设置
  • 默认与显式轴定义
  • 标题与HeaderTemplate自定义
  • LabelTemplate和LabelFormat选项
  • 最小值和最大值范围设置
  • 间隔和刻度配置
  • 网格线自定义(笔触、粗细)
  • EdgeLabelsDrawingMode选项
  • RangePadding设置
  • 完整的轴样式示例

Surface Area Customization

曲面区域自定义

📄 Read: references/surface-area.md
  • Surface area properties overview
  • Rotation and Rotate property
  • Tilt property for viewing angle
  • EnableRotation for interactivity
  • CameraProjection (Perspective/Orthographic)
  • Header and title customization
  • Wall brushes (LeftWallBrush, BottomWallBrush, BackWallBrush)
  • WallThickness configuration
  • Wireframe stroke and thickness
  • ShowContourLine option
  • BrushCount for color gradients
  • ApplyGradientBrush setting
📄 阅读: references/surface-area.md
  • 曲面区域属性概述
  • Rotation和Rotate属性
  • 用于视角调整的Tilt属性
  • 支持交互的EnableRotation
  • CameraProjection(透视/正交)
  • 标题自定义
  • 边框画刷(LeftWallBrush、BottomWallBrush、BackWallBrush)
  • WallThickness配置
  • 线框笔触与粗细
  • ShowContourLine选项
  • 渐变颜色的BrushCount
  • ApplyGradientBrush设置

Color Bar Configuration

颜色条配置

📄 Read: references/color-bar.md
  • ColorBar purpose and value representation
  • DockPosition property (Left, Right, Top, Bottom)
  • ShowLabel property for value display
  • Adding and configuring color bars
  • Integration with palettes
  • XAML and code-behind setup
📄 阅读: references/color-bar.md
  • ColorBar的用途与值表示
  • DockPosition属性(左、右、上、下)
  • 用于值显示的ShowLabel属性
  • 添加和配置颜色条
  • 与调色板的集成
  • XAML和代码后置中的设置

Palettes and Colors

调色板与颜色

📄 Read: references/palettes.md
  • Palette overview and purpose
  • 12 predefined palettes (Metro, AutumnBrights, FloraHues, Pineapple, etc.)
  • Applying predefined palettes via Palette property
  • Creating custom palettes with ChartColorModel
  • CustomBrushes collection
  • Gradient vs solid color rendering
  • Visual palette examples
📄 阅读: references/palettes.md
  • 调色板概述与用途
  • 12种预定义调色板(Metro、AutumnBrights、FloraHues、Pineapple等)
  • 通过Palette属性应用预定义调色板
  • 使用ChartColorModel创建自定义调色板
  • CustomBrushes集合
  • 渐变与纯色渲染
  • 视觉调色板示例

User Interactions

用户交互

📄 Read: references/user-interactions.md
  • Zooming capabilities and EnableZooming
  • ZoomLevel property for programmatic zoom
  • Pinch zooming support
  • Rotation with EnableRotation
  • Rotate property for programmatic rotation
  • Tilt property for viewing angle
  • Interactive vs programmatic control
  • Combining rotation, tilt, and zoom
📄 阅读: references/user-interactions.md
  • 缩放功能与EnableZooming
  • 用于程序化缩放的ZoomLevel属性
  • 捏合缩放支持
  • 与EnableRotation配合的旋转
  • 用于程序化旋转的Rotate属性
  • 用于视角调整的Tilt属性
  • 交互式与程序化控制
  • 结合旋转、倾斜和缩放

Troubleshooting

故障排除

📄 Read: references/troubleshooting.md
  • Common issues and solutions
  • Data not displaying correctly
  • RowSize and ColumnSize mismatches
  • Axis range and scaling problems
  • Performance optimization tips
  • Color bar visibility issues
  • Wireframe rendering problems
  • Assembly reference errors
📄 阅读: references/troubleshooting.md
  • 常见问题与解决方案
  • 数据无法正确显示
  • RowSize和ColumnSize不匹配
  • 轴范围与缩放问题
  • 性能优化技巧
  • 颜色条可见性问题
  • 线框渲染问题
  • 程序集引用错误

Quick Start Example

快速入门示例

Basic Surface Chart in XAML

XAML中的基础曲面图

xaml
<Window xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF">
    <Grid>
        <chart:SfSurfaceChart Type="Surface" 
                             ItemsSource="{Binding DataValues}"
                             XBindingPath="X" 
                             YBindingPath="Y" 
                             ZBindingPath="Z"
                             RowSize="{Binding RowSize}"
                             ColumnSize="{Binding ColumnSize}"
                             Header="3D Surface Chart"
                             Rotate="30" 
                             Tilt="15">
            
            <!-- X Axis -->
            <chart:SfSurfaceChart.XAxis>
                <chart:SurfaceAxis Header="X-Axis" />
            </chart:SfSurfaceChart.XAxis>
            
            <!-- Y Axis -->
            <chart:SfSurfaceChart.YAxis>
                <chart:SurfaceAxis Header="Y-Axis" LabelFormat="0.0" />
            </chart:SfSurfaceChart.YAxis>
            
            <!-- Z Axis -->
            <chart:SfSurfaceChart.ZAxis>
                <chart:SurfaceAxis Header="Z-Axis" />
            </chart:SfSurfaceChart.ZAxis>
            
            <!-- Color Bar -->
            <chart:SfSurfaceChart.ColorBar>
                <chart:ChartColorBar DockPosition="Right" ShowLabel="True" />
            </chart:SfSurfaceChart.ColorBar>
        </chart:SfSurfaceChart>
    </Grid>
</Window>
xaml
<Window xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF">
    <Grid>
        <chart:SfSurfaceChart Type="Surface" 
                             ItemsSource="{Binding DataValues}"
                             XBindingPath="X" 
                             YBindingPath="Y" 
                             ZBindingPath="Z"
                             RowSize="{Binding RowSize}"
                             ColumnSize="{Binding ColumnSize}"
                             Header="3D Surface Chart"
                             Rotate="30" 
                             Tilt="15">
            
            <!-- X轴 -->
            <chart:SfSurfaceChart.XAxis>
                <chart:SurfaceAxis Header="X-Axis" />
            </chart:SfSurfaceChart.XAxis>
            
            <!-- Y轴 -->
            <chart:SfSurfaceChart.YAxis>
                <chart:SurfaceAxis Header="Y-Axis" LabelFormat="0.0" />
            </chart:SfSurfaceChart.YAxis>
            
            <!-- Z轴 -->
            <chart:SfSurfaceChart.ZAxis>
                <chart:SurfaceAxis Header="Z-Axis" />
            </chart:SfSurfaceChart.ZAxis>
            
            <!-- 颜色条 -->
            <chart:SfSurfaceChart.ColorBar>
                <chart:ChartColorBar DockPosition="Right" ShowLabel="True" />
            </chart:SfSurfaceChart.ColorBar>
        </chart:SfSurfaceChart>
    </Grid>
</Window>

Data Model and ViewModel

数据模型与ViewModel

csharp
// Data Model
public class Data
{
    public double X { get; set; }
    public double Y { get; set; }
    public double Z { get; set; }
}

// ViewModel
public class ViewModel
{
    public ObservableCollection<Data> DataValues { get; set; }
    public int RowSize { get; set; }
    public int ColumnSize { get; set; }
    
    public ViewModel()
    {
        DataValues = new ObservableCollection<Data>();
        
        // Generate sample data for mathematical surface
        double inc = 8.0 / 35;
        for (double x = -4; x < 4; x += inc)
        {
            for (double z = -4; z < 4; z += inc)
            {
                double y = 2 * (x * x) + 2 * (z * z) - 4;
                DataValues.Add(new Data() { X = x, Y = y, Z = z });
            }
        }
        
        RowSize = 35;
        ColumnSize = 35;
    }
}
csharp
// 数据模型
public class Data
{
    public double X { get; set; }
    public double Y { get; set; }
    public double Z { get; set; }
}

// ViewModel
public class ViewModel
{
    public ObservableCollection<Data> DataValues { get; set; }
    public int RowSize { get; set; }
    public int ColumnSize { get; set; }
    
    public ViewModel()
    {
        DataValues = new ObservableCollection<Data>();
        
        // 为数学曲面生成示例数据
        double inc = 8.0 / 35;
        for (double x = -4; x < 4; x += inc)
        {
            for (double z = -4; z < 4; z += inc)
            {
                double y = 2 * (x * x) + 2 * (z * z) - 4;
                DataValues.Add(new Data() { X = x, Y = y, Z = z });
            }
        }
        
        RowSize = 35;
        ColumnSize = 35;
    }
}

Basic Surface Chart in Code-Behind

代码后置中的基础曲面图

csharp
using Syncfusion.UI.Xaml.Charts;

// Create surface chart
SfSurfaceChart chart = new SfSurfaceChart();
chart.Type = SurfaceType.Surface;
chart.Header = "3D Surface Chart";
chart.Rotate = 30;
chart.Tilt = 15;

// Add data directly using AddPoints
for (double x = -4; x < 4; x += 0.2)
{
    for (double z = -4; z < 4; z += 0.2)
    {
        double y = 2 * (x * x) + 2 * (z * z) - 4;
        chart.Data.AddPoints(x, y, z);
    }
}

chart.RowSize = 40;
chart.ColumnSize = 40;

// Configure axes
chart.XAxis = new SurfaceAxis { Header = "X-Axis" };
chart.YAxis = new SurfaceAxis { Header = "Y-Axis", LabelFormat = "0.0" };
chart.ZAxis = new SurfaceAxis { Header = "Z-Axis" };

// Add color bar
ChartColorBar colorBar = new ChartColorBar();
colorBar.DockPosition = ChartDock.Right;
colorBar.ShowLabel = true;
chart.ColorBar = colorBar;

// Add to grid
grid.Children.Add(chart);
csharp
using Syncfusion.UI.Xaml.Charts;

// 创建曲面图
SfSurfaceChart chart = new SfSurfaceChart();
chart.Type = SurfaceType.Surface;
chart.Header = "3D Surface Chart";
chart.Rotate = 30;
chart.Tilt = 15;

// 使用AddPoints直接添加数据
for (double x = -4; x < 4; x += 0.2)
{
    for (double z = -4; z < 4; z += 0.2)
    {
        double y = 2 * (x * x) + 2 * (z * z) - 4;
        chart.Data.AddPoints(x, y, z);
    }
}

chart.RowSize = 40;
chart.ColumnSize = 40;

// 配置轴
chart.XAxis = new SurfaceAxis { Header = "X-Axis" };
chart.YAxis = new SurfaceAxis { Header = "Y-Axis", LabelFormat = "0.0" };
chart.ZAxis = new SurfaceAxis { Header = "Z-Axis" };

// 添加颜色条
ChartColorBar colorBar = new ChartColorBar();
colorBar.DockPosition = ChartDock.Right;
colorBar.ShowLabel = true;
chart.ColorBar = colorBar;

// 添加到网格
grid.Children.Add(chart);

Common Patterns

常见模式

Pattern 1: Mathematical Function Visualization

模式1:数学函数可视化

When visualizing mathematical functions in 3D:
csharp
// Generate data for z = sin(x) * cos(y)
for (double x = -Math.PI; x <= Math.PI; x += 0.1)
{
    for (double y = -Math.PI; y <= Math.PI; y += 0.1)
    {
        double z = Math.Sin(x) * Math.Cos(y);
        chart.Data.AddPoints(x, z, y);
    }
}

chart.RowSize = 63;  // Number of x points
chart.ColumnSize = 63;  // Number of y points
当需要可视化3D数学函数时:
csharp
// 生成z = sin(x) * cos(y)的数据
for (double x = -Math.PI; x <= Math.PI; x += 0.1)
{
    for (double y = -Math.PI; y <= Math.PI; y += 0.1)
    {
        double z = Math.Sin(x) * Math.Cos(y);
        chart.Data.AddPoints(x, z, y);
    }
}

chart.RowSize = 63;  // X轴数据点数量
chart.ColumnSize = 63;  // Y轴数据点数量

Pattern 2: Contour Chart for Top-Down View

模式2:用于自上而下视图的等高线图

When user needs a 2D contour view of 3D data:
xaml
<chart:SfSurfaceChart Type="Contour" 
                     Rotate="0"
                     ItemsSource="{Binding DataValues}"
                     XBindingPath="X" 
                     YBindingPath="Y" 
                     ZBindingPath="Z">
    <chart:SfSurfaceChart.ColorBar>
        <chart:ChartColorBar DockPosition="Right" ShowLabel="True"/>
    </chart:SfSurfaceChart.ColorBar>
</chart:SfSurfaceChart>
当用户需要3D数据的2D等高线视图时:
xaml
<chart:SfSurfaceChart Type="Contour" 
                     Rotate="0"
                     ItemsSource="{Binding DataValues}"
                     XBindingPath="X" 
                     YBindingPath="Y" 
                     ZBindingPath="Z">
    <chart:SfSurfaceChart.ColorBar>
        <chart:ChartColorBar DockPosition="Right" ShowLabel="True"/>
    </chart:SfSurfaceChart.ColorBar>
</chart:SfSurfaceChart>

Pattern 3: Interactive Chart with User Control

模式3:带用户控制的交互式图表

When user needs to interact with the chart:
xaml
<chart:SfSurfaceChart EnableRotation="True" 
                     EnableZooming="True"
                     Type="Surface">
    <!-- Chart will respond to mouse drag (rotation) and mouse wheel (zoom) -->
</chart:SfSurfaceChart>
当用户需要与图表交互时:
xaml
<chart:SfSurfaceChart EnableRotation="True" 
                     EnableZooming="True"
                     Type="Surface">
    <!-- 图表将响应鼠标拖动(旋转)和鼠标滚轮(缩放) -->
</chart:SfSurfaceChart>

Pattern 4: Custom Color Palette

模式4:自定义调色板

When user needs specific colors:
xaml
<chart:SfSurfaceChart Palette="Custom">
    <chart:SfSurfaceChart.ColorModel>
        <chart:ChartColorModel>
            <chart:ChartColorModel.CustomBrushes>
                <SolidColorBrush Color="Blue"/>
                <SolidColorBrush Color="Lime"/>
                <SolidColorBrush Color="Yellow"/>
                <SolidColorBrush Color="OrangeRed"/>
            </chart:ChartColorModel.CustomBrushes>
        </chart:ChartColorModel>
    </chart:SfSurfaceChart.ColorModel>
</chart:SfSurfaceChart>
当用户需要特定颜色时:
xaml
<chart:SfSurfaceChart Palette="Custom">
    <chart:SfSurfaceChart.ColorModel>
        <chart:ChartColorModel>
            <chart:ChartColorModel.CustomBrushes>
                <SolidColorBrush Color="Blue"/>
                <SolidColorBrush Color="Lime"/>
                <SolidColorBrush Color="Yellow"/>
                <SolidColorBrush Color="OrangeRed"/>
            </chart:ChartColorModel.CustomBrushes>
        </chart:ChartColorModel>
    </chart:SfSurfaceChart.ColorModel>
</chart:SfSurfaceChart>

Pattern 5: Wireframe Visualization

模式5:线框可视化

When user needs to see the mesh structure:
csharp
chart.Type = SurfaceType.WireframeSurface;
chart.WireframeStroke = new SolidColorBrush(Colors.Green);
chart.WireframeStrokeThickness = 1;
当用户需要查看网格结构时:
csharp
chart.Type = SurfaceType.WireframeSurface;
chart.WireframeStroke = new SolidColorBrush(Colors.Green);
chart.WireframeStrokeThickness = 1;

Key Properties

核心属性

Essential Properties

必备属性

  • Type - Surface type (Surface, WireframeSurface, Contour, WireframeContour)
  • ItemsSource - Data collection for binding
  • XBindingPath, YBindingPath, ZBindingPath - Property paths for X, Y, Z values
  • RowSize, ColumnSize - Grid dimensions for data
  • Data - Direct data collection using AddPoints method
  • Type - 曲面类型(Surface、WireframeSurface、Contour、WireframeContour)
  • ItemsSource - 用于绑定的数据集合
  • XBindingPath, YBindingPath, ZBindingPath - X、Y、Z值的属性路径
  • RowSize, ColumnSize - 数据的网格维度
  • Data - 使用AddPoints方法的直接数据集合

Visual Properties

视觉属性

  • Header - Chart title
  • Rotate - Rotation angle (0-360)
  • Tilt - Tilt angle for viewing perspective
  • Palette - Color scheme (Metro, AutumnBrights, FloraHues, etc.)
  • ColorBar - Value range indicator with colors
  • Header - 图表标题
  • Rotate - 旋转角度(0-360)
  • Tilt - 用于查看视角的倾斜角度
  • Palette - 配色方案(Metro、AutumnBrights、FloraHues等)
  • ColorBar - 带颜色的值范围指示器

Interaction Properties

交互属性

  • EnableRotation - Allow mouse-drag rotation
  • EnableZooming - Allow mouse-wheel zoom
  • ZoomLevel - Programmatic zoom level
  • EnableRotation - 允许鼠标拖动旋转
  • EnableZooming - 允许鼠标滚轮缩放
  • ZoomLevel - 程序化缩放级别

Axis Properties

轴属性

  • XAxis, YAxis, ZAxis - Axis configuration objects
  • Each axis supports: Header, LabelFormat, Minimum, Maximum, Interval, etc.
  • XAxis, YAxis, ZAxis - 轴配置对象
  • 每个轴支持:标题、LabelFormat、最小值、最大值、间隔等

Customization Properties

自定义属性

  • CameraProjection - Perspective or Orthographic view
  • LeftWallBrush, BottomWallBrush, BackWallBrush - Wall colors
  • WallThickness - Wall border thickness
  • WireframeStroke, WireframeStrokeThickness - Wireframe appearance
  • ApplyGradientBrush - Enable gradient coloring
  • BrushCount - Number of color steps in gradient
  • CameraProjection - 透视或正交视图
  • LeftWallBrush, BottomWallBrush, BackWallBrush - 边框颜色
  • WallThickness - 边框厚度
  • WireframeStroke, WireframeStrokeThickness - 线框外观
  • ApplyGradientBrush - 启用渐变着色
  • BrushCount - 渐变中的颜色步数

Common Use Cases

常见使用场景

Use Case 1: Scientific Data Visualization

场景1:科学数据可视化

Scenario: Researcher needs to visualize experimental data with X, Y coordinates and measured Z values.
Approach: Use ItemsSource binding with data collection, configure appropriate axes with scientific notation, and use a clear color palette like Metro or BlueChrome for professional appearance.
场景: 研究人员需要可视化带有X、Y坐标和测量Z值的实验数据。
方法: 使用ItemsSource绑定数据集合,配置支持科学计数法的合适轴,并使用Metro或BlueChrome等清晰的调色板以呈现专业外观。

Use Case 2: Mathematical Function Plotting

场景2:数学函数绘图

Scenario: Student needs to visualize a 3D mathematical function like z = f(x, y).
Approach: Generate data programmatically using nested loops, use Data.AddPoints for direct input, enable rotation for exploration, and use wireframe or standard surface type for clarity.
场景: 学生需要可视化z = f(x, y)这样的3D数学函数。
方法: 使用嵌套循环程序化生成数据,使用Data.AddPoints直接输入数据,启用旋转以方便探索,并使用线框或标准曲面类型以保证清晰性。

Use Case 3: Topographical Mapping

场景3:地形映射

Scenario: Display elevation data or terrain visualization.
Approach: Use Contour type for 2D representation with color gradients, or Surface type for 3D terrain. Apply earth-toned custom palette (green-brown-white for elevation levels).
场景: 显示海拔数据或地形可视化。
方法: 使用Contour类型进行带颜色渐变的2D表示,或使用Surface类型进行3D地形展示。应用大地色系自定义调色板(绿色-棕色-白色表示海拔级别)。

Use Case 4: Heat Map Visualization

场景4:热图可视化

Scenario: Show intensity or value distribution across two dimensions.
Approach: Use Contour type with Rotate="0" for flat view, configure ColorBar with ShowLabel="True", and apply gradient brushes with appropriate BrushCount for smooth transitions.
场景: 展示两个维度上的强度或值分布。
方法: 使用Rotate="0"的Contour类型实现平面视图,配置ShowLabel="True"的ColorBar,并应用带有合适BrushCount的渐变画刷以实现平滑过渡。

Use Case 5: Interactive Data Exploration

场景5:交互式数据探索

Scenario: User needs to explore complex 3D dataset from multiple angles.
Approach: Enable both EnableRotation and EnableZooming, provide initial good viewing angle with Rotate and Tilt, and consider adding UI controls to switch between Surface types dynamically.
场景: 用户需要从多个角度探索复杂的3D数据集。
方法: 同时启用EnableRotation和EnableZooming,使用Rotate和Tilt设置初始合适视角,并考虑添加UI控件以动态切换曲面类型。

Use Case 6: Engineering Analysis

场景6:工程分析

Scenario: Visualize stress, temperature, or pressure distribution in engineering simulations.
Approach: Use Surface or WireframeSurface type, apply custom color palette matching engineering standards (e.g., blue for cold/low, red for hot/high), and configure axes with appropriate units and precision.

场景: 可视化工程模拟中的应力、温度或压力分布。
方法: 使用Surface或WireframeSurface类型,应用符合工程标准的自定义调色板(例如蓝色表示低温/低值,红色表示高温/高值),并配置带有合适单位和精度的轴。

Next Steps

后续步骤

  1. For initial setup: Read getting-started.md
  2. To choose visualization type: Read surface-types.md
  3. For data integration: Read data-binding.md
  4. For detailed customization: Navigate to specific feature references as needed
Remember: SfSurfaceChart requires data in grid format with consistent RowSize and ColumnSize. The order of data points matters - they should be organized in row-major or column-major format for proper surface rendering.
  1. 初始设置: 阅读getting-started.md
  2. 选择可视化类型: 阅读surface-types.md
  3. 数据集成: 阅读data-binding.md
  4. 详细自定义: 根据需要导航到特定功能参考文档
注意:SfSurfaceChart要求数据为网格格式,且RowSize和ColumnSize保持一致。数据点的顺序很重要 - 它们应按行优先或列优先格式组织,以确保曲面正确渲染。