Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计提醒

syncfusion-react-chartssyncfusion React charts 前端

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

1,992

周安装

83

GitHub Stars

1

下载量

664
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-react-charts(syncfusion React charts 前端)
来源仓库:https://github.com/syncfusion/react-ui-components-skills
仓库路径:skills/syncfusion-react-charts
安装命令:
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-charts
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-charts

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构。
  • 使用时需结合项目现有设计系统、路由和构建方式,避免生成孤立片段。
  • 涉及页面改动时应配合本地预览和构建检查确认视觉效果。
  • syncfusion-react-charts 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion React Charts

When to Use This Skill

Use this skill when you need to:

  • Create and render charts (area, bar, column, line, scatter, etc.)
  • Configure chart axes and customize their appearance
  • Bind local data, remote data (DataManager), or use OData/WebAPI/custom adaptors
  • Dynamically add, remove, or replace data points (addPoint, removePoint, setData)
  • Customize chart appearance (colors, labels, legends, annotations)
  • Configure data labels (must be placed inside marker.dataLabel, not directly on the series)
  • Implement user interactions (selection, zooming, tooltips)
  • Add financial indicators and technical analysis
  • Handle accessibility and internationalization
  • Troubleshoot chart rendering or data issues

Component Overview

Syncfusion React Chart is a powerful data visualization component that supports 20+ chart types with extensive customization options. It's designed for building professional dashboards, reports, and analytics applications with interactive features like zooming, selection, and tooltips.

Key Capabilities:

  • 20+ chart types (cartesian, polar, radar, pie, doughnut, and more)
  • Multiple axes (category, numeric, date-time, logarithmic)
  • Financial indicators and candlestick charts
  • Advanced interactions (zoom, pan, crosshair, tooltip)
  • Responsive design and accessibility support
  • Print and export functionality

Documentation and Navigation Guide

API Reference

📄 Read: references/api-reference.md

  • Complete ChartComponent properties reference
  • All methods and events documentation
  • SeriesDirective properties
  • Model interfaces (AxisModel, ZoomSettingsModel, etc.)
  • Module services (series types, features, indicators)
  • Official API documentation links

Getting Started

📄 Read: references/getting-started.md

  • Installation and package setup
  • Creating your first chart
  • CSS imports and theme configuration
  • Rendering basic chart examples
  • Package structure overview

Chart Types

📄 Read: references/chart-types.md

  • Overview of 20+ supported chart types
  • When to use each chart type
  • Basic examples for common types (Line, Bar, Column, Area, Scatter)
  • Type-specific configurations
  • Choosing the right chart for your data

Axes and Customization

📄 Read: references/axes-and-customization.md

  • Category, numeric, date-time, and logarithmic axes
  • Axis labels and formatting
  • Multiple axes configuration
  • Range and interval settings
  • Axis crossing and positioning

Series and Data Binding

📄 Read: references/series-and-data.md

  • Series configuration and properties
  • Local data binding patterns
  • Remote data binding using DataManager
  • Data adaptors: ODataAdaptor, ODataV4Adaptor, WebApiAdaptor, custom adaptors
  • Offline mode and lazy loading
  • Dynamic data updates via addPoint, removePoint, setData, or React state
  • Multiple series handling
  • Data validation and edge cases

Appearance and Styling

📄 Read: references/appearance-and-styling.md

  • Legend configuration and positioning
  • Data labels and formatting
  • Chart annotations
  • Gradients and color customization
  • Title, subtitle, and description styling

User Interactions

📄 Read: references/user-interaction.md

  • Selection and highlighting
  • Zooming and panning
  • Tooltip and crosshair configuration
  • Synchronized charts
  • Event handling patterns

Advanced Features

📄 Read: references/advanced-features.md

  • Financial chart types (candlestick, HLOC, high-low)
  • Technical indicators (moving average, trend lines, etc.)
  • Multiple panes and indicator panes
  • Accessibility (WCAG compliance, keyboard navigation)
  • Internationalization and localization

Quick Start Example

import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, LineSeries, Category, Legend, Tooltip } from '@syncfusion/ej2-react-charts';

export default function BasicChart() {
  const data = [
    { x: 'Jan', y: 35 },
    { x: 'Feb', y: 28 },
    { x: 'Mar', y: 34 },
    { x: 'Apr', y: 32 },
    { x: 'May', y: 40 }
  ];

  return (
    <ChartComponent id='charts'>
      <Inject services={[LineSeries, Category, Legend, Tooltip]} />
      <SeriesCollectionDirective>
        <SeriesDirective dataSource={data} xName='x' yName='y' type='Line' />
      </SeriesCollectionDirective>
    </ChartComponent>
  );
}

Common Patterns

Pattern 1: Multi-Series Chart

When displaying multiple datasets that share the same axes, add multiple SeriesDirective components within SeriesCollectionDirective:

<SeriesCollectionDirective>
  <SeriesDirective dataSource={salesData} xName='month' yName='revenue' type='Column' />
  <SeriesDirective dataSource={profitData} xName='month' yName='profit' type='Column' />
</SeriesCollectionDirective>

Pattern 2: Dynamic Data Updates

Three approaches depending on the use case:

a) React state (simple re-render):

const [data, setData] = useState(initialData);

const handleDataUpdate = () => {
  setData(prev => [...prev, { x: 'Jun', y: 45 }]);
};

<SeriesDirective dataSource={data} xName='x' yName='y' type='Line' />

b) addPoint / removePoint / setData (imperative, with animation):

const chartRef = useRef(null);

// Add a point
chartRef.current.series[0].addPoint({ x: 'Jun', y: 45 }, 300);

// Remove first point
chartRef.current.series[0].removePoint(0, 300);

// Replace all data
chartRef.current.series[0].setData(newDataArray, 500);

<ChartComponent ref={chartRef} ...>
  <SeriesDirective dataSource={data} xName='x' yName='y' type='Line' />
</ChartComponent>

Pattern 3: Remote Data Binding

Use DataManager with an adaptor to bind data from a REST API or OData service:

import { DataManager, Query, WebApiAdaptor } from '@syncfusion/ej2-data';

const dataManager = new DataManager({
  url: 'your data source URL link',
  adaptor: new WebApiAdaptor()
});

<SeriesDirective dataSource={dataManager} xName='CustomerID' yName='Freight' type='Column' query={new Query()} />

Other adaptors: ODataAdaptor (OData v3), ODataV4Adaptor (OData v4), custom adaptor by extending ODataAdaptor.

Pattern 4: Data Labels (inside marker)

Data labels must be placed inside marker.dataLabel, not directly on the series. Inject DataLabel service:

<Inject services={[LineSeries, Category, DataLabel]} />

<SeriesDirective
  dataSource={data}
  xName='x'
  yName='y'
  type='Line'
  marker={{
    visible: true,
    dataLabel: { visible: true, position: 'Top' }
  }}
/>

Pattern 5: Custom Tooltips

Enhance user experience with formatted tooltip templates:

<ChartComponent tooltip={{ enable: true, template: '<div>${point.x}: ${point.y}</div>' }}>

Pattern 6: Responsive Design

Use container styling to make charts responsive:

<ChartComponent id='charts' width='100%' height='400px'>
  {/* chart content */}
</ChartComponent>

Key Props Reference

ChartComponent

PropTypePurposeWhen to Use
idstringUnique identifierRequired for each chart
widthstringChart width (px or %)Control layout sizing
heightstringChart heightSet explicit dimensions
titlestringChart titleDisplay main heading
tooltipobjectTooltip configurationInteractive data inspection
primaryXAxisobjectPrimary X-axis configDefine horizontal axis
primaryYAxisobjectPrimary Y-axis configDefine vertical axis

SeriesDirective

PropTypePurposeWhen to Use
dataSourcearray \DataManagerData sourceBind local array or remote DataManager
xNamestringX-axis propertyMap data field to X
yNamestringY-axis propertyMap data field to Y
typestringChart typeSelect visualization type
fillstringSeries colorCustomize series color
markerobjectMarker + data label configShow point markers and/or data labels (marker.dataLabel)
namestringSeries nameDisplay in legend
queryQueryDataManager queryFilter/sort/paginate remote data

Common Use Cases

  1. Sales Dashboard: Combine column chart for revenue with line series for trends
  2. Time Series Analysis: Use date-time axis with line chart for temporal data
  3. Comparative Analysis: Multi-series column charts comparing categories
  4. Financial Analysis: Candlestick chart with moving average indicators
  5. Distribution Analysis: Histogram or box-whisker charts for statistical data
  6. Real-time Monitoring: Use addPoint/removePoint for live feeds with smooth animation
  7. Remote Data from REST API: Bind DataManager with WebApiAdaptor or ODataAdaptor directly to series
  8. Server-side OData: Use ODataV4Adaptor with a Query to filter and paginate at the server

Next Steps

Choose the reference that matches your current need:

External Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.82%
按下载量换算225

Claude

30.85%
按下载量换算205

Cursor

17.38%
按下载量换算115

Gemini CLI

8.79%
按下载量换算58

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills