syncfusion-angular-chart

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Implementing Syncfusion Angular Chart Component

实现Syncfusion Angular Chart组件

A comprehensive guide for implementing the Syncfusion Angular Chart component, a high-performance, interactive data visualization library supporting 25+ chart types including line, bar, area, column, pie, financial, and specialized series. Optimized for responsive rendering, smooth interactions, and large datasets.
这是一份实现Syncfusion Angular Chart组件的综合指南,该组件是一个高性能、交互式的数据可视化库,支持25种以上的图表类型,包括折线图、柱状图、面积图、条形图、饼图、金融图及专业系列图表。针对响应式渲染、流畅交互和大数据集进行了优化。

When to Use This Skill

何时使用该技能

Use this skill when you need to:
  • Visualize Data: Display numerical data as charts, graphs, or plots in Angular applications
  • Trend Analysis: Show data trends over time using line, spline, or area charts
  • Comparisons: Compare categorical data using column, bar, or grouped charts
  • Financial Data: Implement stock charts with candlestick, OHLC, or technical indicators
  • Statistical Analysis: Use box plots, histograms, or pareto charts for distributions
  • Multi-dimensional Data: Display scatter plots or bubble charts for correlation analysis
  • Real-time Monitoring: Create live-updating charts for dashboards or monitoring systems
  • Interactive Exploration: Add zooming, panning, crosshair, tooltips, or selection features
  • Custom Visualizations: Combine multiple series types, axes, or create complex layouts
  • Accessible Charts: Implement WCAG-compliant charts with keyboard navigation and screen reader support
在以下场景中使用本技能:
  • 数据可视化:在Angular应用中以图表、图形或绘图形式展示数值数据
  • 趋势分析:使用折线图、样条线图或面积图展示数据随时间的变化趋势
  • 数据对比:使用柱状图、条形图或分组图表对比分类数据
  • 金融数据展示:实现带有K线图、OHLC图或技术指标的股票图表
  • 统计分析:使用箱线图、直方图或帕累托图表分析数据分布
  • 多维数据展示:使用散点图或气泡图进行相关性分析
  • 实时监控:为仪表板或监控系统创建实时更新的图表
  • 交互式探索:添加缩放、平移、十字准线、工具提示或选择功能
  • 自定义可视化:组合多种系列类型、轴或创建复杂布局
  • 无障碍图表:实现符合WCAG标准的图表,支持键盘导航和屏幕阅读器

Component Overview

组件概述

The Syncfusion Angular Chart is a feature-rich data visualization component with:
  • 25+ Series Types: Line, spline, step line, area, column, bar, scatter, bubble, pie, financial (candlestick, OHLC), statistical (box & whisker, histogram, pareto), polar, radar, waterfall, and more
  • Interactive Features: Zooming (selection, mouse wheel, pinch), panning, tooltips, crosshair, trackball, selection, data editing
  • Multiple Axes: Support for primary, secondary, and multiple axes with different data types (numeric, datetime, logarithmic, category)
  • Chart Elements: Legends, data markers, data labels, annotations, trendlines, technical indicators, striplines
  • Data Binding: Local arrays, remote data (OData, DataManager), JSON sources, dynamic updates
  • Customization: Themes, CSS styling, color palettes, responsive design, animations
  • Export & Print: Export to PDF, SVG, PNG, JPEG, CSV, XLSX formats
  • Accessibility: WCAG compliance, keyboard navigation, ARIA attributes, internationalization, RTL support
Syncfusion Angular Chart是一个功能丰富的数据可视化组件,具备以下特性:
  • 25+种系列类型:折线图、样条线图、阶梯线图、面积图、柱状图、条形图、散点图、气泡图、饼图、金融图(K线图、OHLC图)、统计图(箱线图、直方图、帕累托图)、极坐标图、雷达图、瀑布图等
  • 交互功能:缩放(选区缩放、鼠标滚轮缩放、捏合缩放)、平移、工具提示、十字准线、跟踪球、选择、数据编辑
  • 多轴支持:支持主坐标轴、次坐标轴及多轴,适配不同数据类型(数值型、日期型、对数型、分类型)
  • 图表元素:图例、数据标记、数据标签、注释、趋势线、技术指标、带状线
  • 数据绑定:本地数组、远程数据源(OData、DataManager)、JSON源、动态更新
  • 自定义配置:主题、CSS样式、调色板、响应式设计、动画
  • 导出与打印:导出为PDF、SVG、PNG、JPEG、CSV、XLSX格式
  • 无障碍支持:符合WCAG标准、键盘导航、ARIA属性、国际化、RTL支持

Documentation and Navigation Guide

文档与导航指南

Getting Started

快速入门

📄 Read: references/getting-started.md
When you need to:
  • Install and set up the Chart component in an Angular project
  • Understand prerequisites and system requirements
  • Add the
    @syncfusion/ej2-angular-charts
    package
  • Configure CSS themes and imports
  • Create your first basic chart
  • Understand the chart module structure
📄 阅读文档references/getting-started.md
适用于以下场景:
  • 在Angular项目中安装和设置Chart组件
  • 了解前提条件和系统要求
  • 添加
    @syncfusion/ej2-angular-charts
  • 配置CSS主题和导入项
  • 创建第一个基础图表
  • 了解图表模块结构

Series Types

系列类型

📄 Read: references/series-types.md
When you need to:
  • Choose the appropriate chart type for your data
  • Implement line series (line, step line, spline, stacked, multi-colored)
  • Create area charts (area, stacked, 100% stacked, range, spline range)
  • Build column and bar charts (column, bar, stacked, range)
  • Visualize financial data (candlestick, hilo, hilo-open-close)
  • Use statistical charts (box & whisker, histogram, pareto, error bar)
  • Create specialized charts (scatter, bubble, polar, radar, waterfall, vertical)
  • Combine multiple series types in one chart
📄 阅读文档references/series-types.md
适用于以下场景:
  • 为数据选择合适的图表类型
  • 实现折线系列(折线图、阶梯线图、样条线图、堆叠图、多色图)
  • 创建面积图(面积图、堆叠面积图、100%堆叠面积图、范围面积图、样条范围面积图)
  • 构建柱状图和条形图(柱状图、条形图、堆叠图、范围图)
  • 可视化金融数据(K线图、高低图、高低开收盘图)
  • 使用统计图表(箱线图、直方图、帕累托图、误差棒图)
  • 创建专业图表(散点图、气泡图、极坐标图、雷达图、瀑布图、垂直图表)
  • 在单个图表中组合多种系列类型

Chart Elements

图表元素

📄 Read: references/chart-elements.md
When you need to:
  • Configure and customize legends (positioning, templates, styling)
  • Add data markers to highlight points (shapes, sizes, visibility)
  • Display data labels on chart elements (positioning, templates, formatting)
  • Add custom annotations (text, shapes, images at specific coordinates)
  • Include trendlines (linear, exponential, polynomial, moving average)
  • Add technical indicators (RSI, MACD, Bollinger Bands, EMA, SMA)
  • Highlight specific ranges with striplines
  • Apply gradient fills to series
📄 阅读文档references/chart-elements.md
适用于以下场景:
  • 配置和自定义图例(位置、模板、样式)
  • 添加数据标记以突出显示数据点(形状、大小、可见性)
  • 在图表元素上显示数据标签(位置、模板、格式化)
  • 添加自定义注释(特定坐标处的文本、形状、图像)
  • 添加趋势线(线性、指数、多项式、移动平均)
  • 添加技术指标(RSI、MACD、布林带、EMA、SMA)
  • 使用带状线突出显示特定范围
  • 为系列应用渐变填充

Axes and Layout

轴与布局

📄 Read: references/axes-and-layout.md
When you need to:
  • Configure axis types (numeric, datetime, logarithmic, category)
  • Set up primary and secondary axes
  • Add multiple axes for different data scales
  • Format axis labels (rotation, alignment, multilevel labels)
  • Customize gridlines and tick marks
  • Implement axis crossing and inversed axes
  • Create charts with multiple panes
  • Configure chart title, subtitle, and dimensions
  • Set chart margins and padding
📄 阅读文档references/axes-and-layout.md
适用于以下场景:
  • 配置轴类型(数值型、日期型、对数型、分类型)
  • 设置主坐标轴和次坐标轴
  • 添加多轴以适配不同数据刻度
  • 格式化轴标签(旋转、对齐、多级标签)
  • 自定义网格线和刻度线
  • 实现轴交叉和反向轴
  • 创建多窗格图表
  • 配置图表标题、副标题及尺寸
  • 设置图表边距和内边距

Interactive Features

交互功能

📄 Read: references/interactive-features.md
When you need to:
  • Enable zooming (selection zoom, mouse wheel zoom, pinch zoom, zoom toolbar)
  • Implement panning for navigating zoomed charts
  • Add tooltips (default, custom templates, shared tooltips)
  • Enable crosshair for precise value reading
  • Use trackball for multi-series point tracking
  • Implement selection (point, series, cluster, drag selection)
  • Enable data editing by dragging points
  • Synchronize multiple charts for coordinated interactions
📄 阅读文档references/interactive-features.md
适用于以下场景:
  • 启用缩放(选区缩放、鼠标滚轮缩放、捏合缩放、缩放工具栏)
  • 实现平移以导航缩放后的图表
  • 添加工具提示(默认、自定义模板、共享工具提示)
  • 启用十字准线以精确读取数值
  • 使用跟踪球跟踪多系列数据点
  • 实现选择功能(点选择、系列选择、簇选择、拖拽选择)
  • 启用拖拽数据点进行数据编辑
  • 同步多个图表以实现协同交互

Data Binding

数据绑定

📄 Read: references/data-binding.md
When you need to:
  • Bind local data (arrays of objects, JSON)
  • Connect to remote data sources (OData, RESTful APIs)
  • Use DataManager for advanced data operations
  • Handle dynamic data updates and real-time data
  • Manage empty points and null values
  • Map data fields to chart properties
  • Optimize performance for large datasets
  • Handle asynchronous data loading
📄 阅读文档references/data-binding.md
适用于以下场景:
  • 绑定本地数据(对象数组、JSON)
  • 连接远程数据源(OData、RESTful API)
  • 使用DataManager进行高级数据操作
  • 处理动态数据更新和实时数据
  • 管理空数据点和空值
  • 将数据字段映射到图表属性
  • 优化大数据集的性能
  • 处理异步数据加载

Customization

自定义配置

📄 Read: references/customization.md
When you need to:
  • Apply built-in themes (Material, Bootstrap, Fabric, Tailwind, etc.)
  • Customize chart appearance with CSS
  • Use Theme Studio for custom theme generation
  • Configure color palettes for series
  • Style individual series with custom colors and patterns
  • Implement responsive design for different screen sizes
  • Configure chart background, border, and area
  • Customize animation effects
📄 阅读文档references/customization.md
适用于以下场景:
  • 应用内置主题(Material、Bootstrap、Fabric、Tailwind等)
  • 使用CSS自定义图表外观
  • 使用Theme Studio生成自定义主题
  • 配置系列调色板
  • 使用自定义颜色和样式设置单个系列
  • 为不同屏幕尺寸实现响应式设计
  • 配置图表背景、边框和区域
  • 自定义动画效果

Accessibility

无障碍支持

📄 Read: references/accessibility.md
When you need to:
  • Implement WCAG 2.0/2.1 compliant charts
  • Enable keyboard navigation (arrow keys, tab, enter)
  • Configure ARIA attributes for screen readers
  • Ensure proper color contrast and focus indicators
  • Support high contrast themes
  • Implement internationalization (i18n) for multiple languages
  • Enable localization (l10n) for regional formats
  • Add RTL (right-to-left) support for appropriate languages
  • Configure advanced accessibility features
📄 阅读文档references/accessibility.md
适用于以下场景:
  • 实现符合WCAG 2.0/2.1标准的图表
  • 启用键盘导航(方向键、Tab键、Enter键)
  • 配置屏幕阅读器的ARIA属性
  • 确保合适的颜色对比度和焦点指示器
  • 支持高对比度主题
  • 实现国际化(i18n)以支持多语言
  • 启用本地化(l10n)以适配区域格式
  • 为对应语言添加RTL(从右到左)支持
  • 配置高级无障碍功能

Advanced Features

高级功能

📄 Read: references/advanced-features.md
When you need to:
  • Handle chart events (load, loaded, pointClick, seriesRender, axisLabelRender, etc.)
  • Export charts (PDF, SVG, PNG, JPEG, CSV, XLSX)
  • Implement print functionality
  • Understand module injection for tree-shaking
  • Use different render methods (SVG, Canvas)
  • Configure animation settings
  • Handle empty point modes
  • Access chart API methods programmatically
  • Implement advanced event-driven interactions
📄 阅读文档references/advanced-features.md
适用于以下场景:
  • 处理图表事件(加载、加载完成、点点击、系列渲染、轴标签渲染等)
  • 导出图表(PDF、SVG、PNG、JPEG、CSV、XLSX)
  • 实现打印功能
  • 了解用于摇树优化的模块注入
  • 使用不同渲染方式(SVG、Canvas)
  • 配置动画设置
  • 处理空数据点模式
  • 以编程方式访问图表API方法
  • 实现基于事件的高级交互

Common Patterns and Examples

常见模式与示例

📄 Read: references/common-patterns.md
When you need to:
  • See complete examples for common use cases
  • Build a trend analysis dashboard
  • Create a financial stock chart with technical indicators
  • Implement real-time data monitoring with live updates
  • Build multi-axis comparison charts
  • Create distribution analysis visualizations
  • Find troubleshooting solutions for common issues
  • Learn performance optimization techniques
  • Migrate from EJ1 to EJ2 Chart
  • Follow best practices for chart implementation
📄 阅读文档references/common-patterns.md
适用于以下场景:
  • 查看常见用例的完整示例
  • 构建趋势分析仪表板
  • 创建带有技术指标的金融股票图表
  • 实现带实时更新的实时数据监控
  • 构建多轴对比图表
  • 创建分布分析可视化
  • 查找常见问题的解决方案
  • 学习性能优化技巧
  • 从EJ1迁移到EJ2 Chart
  • 遵循图表实现的最佳实践

Quick Start Example

快速入门示例

Here's a minimal example to create a basic line chart:
typescript
// app.component.ts
import { Component } from '@angular/core';
import { ChartModule } from '@syncfusion/ej2-angular-charts';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [ChartModule],
  template: `
    <ejs-chart [primaryXAxis]='primaryXAxis' [primaryYAxis]='primaryYAxis' [title]='title'>
      <e-series-collection>
        <e-series [dataSource]='chartData' type='Line' xName='month' yName='sales' name='Sales'>
        </e-series>
      </e-series-collection>
    </ejs-chart>
  `
})
export class AppComponent {
  public primaryXAxis = { valueType: 'Category' };
  public primaryYAxis = { title: 'Sales (in USD)' };
  public title = 'Monthly Sales Report';
  
  public chartData = [
    { month: 'Jan', sales: 35000 },
    { month: 'Feb', sales: 28000 },
    { month: 'Mar', sales: 34000 },
    { month: 'Apr', sales: 32000 },
    { month: 'May', sales: 40000 },
    { month: 'Jun', sales: 32000 }
  ];
}
typescript
// app.config.ts (for Angular 19+)
import { ApplicationConfig } from '@angular/core';
import { registerLicense } from '@syncfusion/ej2-base';

// Register Syncfusion license (get free trial at syncfusion.com)
registerLicense('YOUR_LICENSE_KEY');

export const appConfig: ApplicationConfig = {
  providers: []
};
以下是创建基础折线图的最简示例:
typescript
// app.component.ts
import { Component } from '@angular/core';
import { ChartModule } from '@syncfusion/ej2-angular-charts';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [ChartModule],
  template: `
    <ejs-chart [primaryXAxis]='primaryXAxis' [primaryYAxis]='primaryYAxis' [title]='title'>
      <e-series-collection>
        <e-series [dataSource]='chartData' type='Line' xName='month' yName='sales' name='Sales'>
        </e-series>
      </e-series-collection>
    </ejs-chart>
  `
})
export class AppComponent {
  public primaryXAxis = { valueType: 'Category' };
  public primaryYAxis = { title: 'Sales (in USD)' };
  public title = 'Monthly Sales Report';
  
  public chartData = [
    { month: 'Jan', sales: 35000 },
    { month: 'Feb', sales: 28000 },
    { month: 'Mar', sales: 34000 },
    { month: 'Apr', sales: 32000 },
    { month: 'May', sales: 40000 },
    { month: 'Jun', sales: 32000 }
  ];
}
typescript
// app.config.ts (for Angular 19+)
import { ApplicationConfig } from '@angular/core';
import { registerLicense } from '@syncfusion/ej2-base';

// Register Syncfusion license (get free trial at syncfusion.com)
registerLicense('YOUR_LICENSE_KEY');

export const appConfig: ApplicationConfig = {
  providers: []
};

Common Patterns

常见模式

Pattern 1: Multi-Series Comparison Chart

模式1:多系列对比图表

typescript
public chartData = [
  { month: 'Jan', product1: 35, product2: 28, product3: 34 },
  { month: 'Feb', product1: 28, product2: 44, product3: 32 },
  { month: 'Mar', product1: 34, product2: 48, product3: 41 }
];
html
<ejs-chart [primaryXAxis]='primaryXAxis' [title]='title'>
  <e-series-collection>
    <e-series [dataSource]='chartData' type='Column' xName='month' yName='product1' name='Product A'></e-series>
    <e-series [dataSource]='chartData' type='Column' xName='month' yName='product2' name='Product B'></e-series>
    <e-series [dataSource]='chartData' type='Column' xName='month' yName='product3' name='Product C'></e-series>
  </e-series-collection>
</ejs-chart>
typescript
public chartData = [
  { month: 'Jan', product1: 35, product2: 28, product3: 34 },
  { month: 'Feb', product1: 28, product2: 44, product3: 32 },
  { month: 'Mar', product1: 34, product2: 48, product3: 41 }
];
html
<ejs-chart [primaryXAxis]='primaryXAxis' [title]='title'>
  <e-series-collection>
    <e-series [dataSource]='chartData' type='Column' xName='month' yName='product1' name='Product A'></e-series>
    <e-series [dataSource]='chartData' type='Column' xName='month' yName='product2' name='Product B'></e-series>
    <e-series [dataSource]='chartData' type='Column' xName='month' yName='product3' name='Product C'></e-series>
  </e-series-collection>
</ejs-chart>

Pattern 2: Interactive Chart with Zoom and Tooltip

模式2:带缩放和工具提示的交互式图表

typescript
import { Component } from '@angular/core';
import { ChartModule, ZoomService, TooltipService } from '@syncfusion/ej2-angular-charts';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [ChartModule],
  providers: [ZoomService, TooltipService],
  template: `
    <ejs-chart [zoomSettings]='zoomSettings' [tooltip]='tooltip'>
      <e-series-collection>
        <e-series [dataSource]='data' type='Line' xName='x' yName='y'></e-series>
      </e-series-collection>
    </ejs-chart>
  `
})
export class AppComponent {
  public zoomSettings = {
    enableSelectionZooming: true,
    enableMouseWheelZooming: true,
    enablePinchZooming: true,
    enablePan: true
  };
  
  public tooltip = { enable: true };
  public data = [/* your data */];
}
typescript
import { Component } from '@angular/core';
import { ChartModule, ZoomService, TooltipService } from '@syncfusion/ej2-angular-charts';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [ChartModule],
  providers: [ZoomService, TooltipService],
  template: `
    <ejs-chart [zoomSettings]='zoomSettings' [tooltip]='tooltip'>
      <e-series-collection>
        <e-series [dataSource]='data' type='Line' xName='x' yName='y'></e-series>
      </e-series-collection>
    </ejs-chart>
  `
})
export class AppComponent {
  public zoomSettings = {
    enableSelectionZooming: true,
    enableMouseWheelZooming: true,
    enablePinchZooming: true,
    enablePan: true
  };
  
  public tooltip = { enable: true };
  public data = [/* your data */];
}

Pattern 3: Financial Stock Chart

模式3:金融股票图表

typescript
public stockData = [
  { date: new Date(2024, 1, 1), open: 120, high: 135, low: 110, close: 130, volume: 1000000 },
  { date: new Date(2024, 1, 2), open: 130, high: 145, low: 125, close: 140, volume: 1200000 }
  // ... more data
];
html
<ejs-chart [primaryXAxis]='primaryXAxis' [primaryYAxis]='primaryYAxis'>
  <e-series-collection>
    <e-series [dataSource]='stockData' type='Candle' 
              xName='date' high='high' low='low' open='open' close='close'>
    </e-series>
  </e-series-collection>
</ejs-chart>
typescript
public stockData = [
  { date: new Date(2024, 1, 1), open: 120, high: 135, low: 110, close: 130, volume: 1000000 },
  { date: new Date(2024, 1, 2), open: 130, high: 145, low: 125, close: 140, volume: 1200000 }
  // ... more data
];
html
<ejs-chart [primaryXAxis]='primaryXAxis' [primaryYAxis]='primaryYAxis'>
  <e-series-collection>
    <e-series [dataSource]='stockData' type='Candle' 
              xName='date' high='high' low='low' open='open' close='close'>
    </e-series>
  </e-series-collection>
</ejs-chart>

Key Configuration Options

关键配置选项

Series Configuration

系列配置

  • type
    : Chart type (Line, Column, Bar, Area, Scatter, etc.)
  • dataSource
    : Data array for the series
  • xName
    ,
    yName
    : Property names for x and y values
  • name
    : Series name for legend
  • marker
    : Marker configuration for data points
  • fill
    : Series color
  • type
    : 图表类型(Line、Column、Bar、Area、Scatter等)
  • dataSource
    : 系列的数据源数组
  • xName
    ,
    yName
    : X轴和Y轴值的属性名
  • name
    : 图例中显示的系列名称
  • marker
    : 数据点的标记配置
  • fill
    : 系列颜色

Axis Configuration

轴配置

  • valueType
    : Axis type (Double, DateTime, Category, Logarithmic)
  • title
    : Axis title text
  • minimum
    ,
    maximum
    : Axis range
  • interval
    : Label interval
  • labelFormat
    : Format string for labels
  • opposedPosition
    : Position axis on opposite side
  • valueType
    : 轴类型(Double、DateTime、Category、Logarithmic)
  • title
    : 轴标题文本
  • minimum
    ,
    maximum
    : 轴范围
  • interval
    : 标签间隔
  • labelFormat
    : 标签的格式化字符串
  • opposedPosition
    : 将轴放置在对侧

Chart Configuration

图表配置

  • title
    : Chart title
  • width
    ,
    height
    : Chart dimensions
  • theme
    : Built-in theme name
  • background
    : Chart background color
  • legendSettings
    : Legend configuration
  • zoomSettings
    : Zoom configuration
  • tooltip
    : Tooltip configuration
  • title
    : 图表标题
  • width
    ,
    height
    : 图表尺寸
  • theme
    : 内置主题名称
  • background
    : 图表背景色
  • legendSettings
    : 图例配置
  • zoomSettings
    : 缩放配置
  • tooltip
    : 工具提示配置

Common Use Cases

常见用例

  1. Business Dashboards: Display KPIs, sales trends, revenue comparisons
  2. Financial Applications: Stock charts, portfolio performance, technical analysis
  3. Analytics Platforms: User behavior, traffic analysis, conversion funnels
  4. Scientific Visualization: Experimental data, statistical distributions, correlation analysis
  5. Monitoring Systems: Real-time metrics, system performance, IoT data
  6. Reporting Tools: Automated reports, data exports, scheduled visualizations
  7. Educational Applications: Math graphs, statistics teaching, data science demonstrations
  1. 业务仪表板:展示KPI、销售趋势、收入对比
  2. 金融应用:股票图表、投资组合表现、技术分析
  3. 分析平台:用户行为、流量分析、转化漏斗
  4. 科学可视化:实验数据、统计分布、相关性分析
  5. 监控系统:实时指标、系统性能、IoT数据
  6. 报告工具:自动化报告、数据导出、定时可视化
  7. 教育应用:数学图表、统计教学、数据科学演示

Next Steps

后续步骤

After creating your basic chart:
  • Explore different series types for your specific data visualization needs
  • Add interactive features like zooming and tooltips for better user experience
  • Customize appearance with themes and styling
  • Implement data binding for dynamic data sources
  • Ensure accessibility compliance for all users
  • Export and print capabilities for sharing visualizations
For detailed implementation guidance, refer to the specific reference files listed in the navigation guide above.
创建基础图表后:
  • 根据特定数据可视化需求探索不同系列类型
  • 添加缩放和工具提示等交互功能以提升用户体验
  • 使用主题和样式自定义外观
  • 实现动态数据源的数据绑定
  • 确保符合无障碍标准
  • 添加导出和打印功能以共享可视化内容
如需详细的实现指导,请参考上述导航指南中列出的具体参考文档。

API Reference Documentation

API参考文档

📄 Complete API Guide: references/api-reference.md
The Syncfusion Angular Chart component provides 200+ API documentation files covering:
  • Core APIs: ChartModel (40+ properties), AxisModel (50+ properties), SeriesDirective (60+ properties)
  • Chart Elements: Legend, Markers, Data Labels, Tooltip, Annotations, Trendlines, Technical Indicators, Striplines
  • Interactive Features: Zooming, Panning, Crosshair, Selection, Drag Settings
  • Events: 40+ event interfaces (ILoadedEventArgs, IPointRenderEventArgs, IZoomingEventArgs, etc.)
  • Enumerations: 50+ enums (ChartSeriesType, ValueType, ChartTheme, SelectionMode, ExportType, etc.)
  • Utilities: BorderModel, FontModel, MarginModel, AnimationModel, and more
All API documentation is available at https://ej2.syncfusion.com/angular/documentation/api/chart/. See references/api-reference.md for comprehensive API navigation and documentation structure.
Each reference guide (getting-started.md, series-types.md, axes-and-layout.md, etc.) links to the official online API documentation throughout the content.
📄 完整API指南references/api-reference.md
Syncfusion Angular Chart组件提供200+份API文档,涵盖:
  • 核心API:ChartModel(40+属性)、AxisModel(50+属性)、SeriesDirective(60+属性)
  • 图表元素:图例、标记、数据标签、工具提示、注释、趋势线、技术指标、带状线
  • 交互功能:缩放、平移、十字准线、选择、拖拽设置
  • 事件:40+事件接口(ILoadedEventArgs、IPointRenderEventArgs、IZoomingEventArgs等)
  • 枚举:50+枚举类型(ChartSeriesType、ValueType、ChartTheme、SelectionMode、ExportType等)
  • 工具类:BorderModel、FontModel、MarginModel、AnimationModel等
所有参考指南(getting-started.md、series-types.md、axes-and-layout.md等)中均链接到官方在线API文档。