
syncfusion-react-charts
Implement Syncfusion React Charts component for data visualization. Use this when creating charts, configuring axes and series, or customizing visualization styles. This skill covers chart types, data binding, user interactions, financial indicators, accessibility features, and professional data visualization in React applications.
- Installs
- 750
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-charts- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-react-charts automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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)
- Enable WebMCP so browser model contexts and AI agents can inspect and operate the rendered Chart
- 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
- WebMCP integration with automatic tool registration, selected tool allowlists, execution control, and AI-agent access
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
WebMCP and AI Agent Integration
📄 Read: references/webmcp.md
- Generate complete React Chart WebMCP samples
- Import and inject
WebMcpChart - Set
enableWebMcp={true}and use a stableChartComponentID - Configure
webMcpSettings.name,tools, andexposedTo - Register all built-in tools automatically or restrict registration with a verified tool-name allowlist
- Use
getWebMcpTools()only for diagnostics, testing, or direct execution - Use
beforeWebMcpToolExecuteto validate, cancel, or control confirmation - Preserve the module injection list defined by the WebMCP reference sample
- Do not generate a manual registration button or call
registerWebMcpTools() - Validate generated tool names against the verified built-in tool list
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
| Prop | Type | Purpose | When to Use |
|---|---|---|---|
id | string | Unique identifier | Required for each chart |
width | string | Chart width (px or %) | Control layout sizing |
height | string | Chart height | Set explicit dimensions |
title | string | Chart title | Display main heading |
tooltip | object | Tooltip configuration | Interactive data inspection |
primaryXAxis | object | Primary X-axis config | Define horizontal axis |
primaryYAxis | object | Primary Y-axis config | Define vertical axis |
SeriesDirective
| Prop | Type | Purpose | When to Use |
|---|---|---|---|
dataSource | array | DataManager | Data source | Bind local array or remote DataManager |
xName | string | X-axis property | Map data field to X |
yName | string | Y-axis property | Map data field to Y |
type | string | Chart type | Select visualization type |
fill | string | Series color | Customize series color |
marker | object | Marker + data label config | Show point markers and/or data labels (marker.dataLabel) |
name | string | Series name | Display in legend |
query | Query | DataManager query | Filter/sort/paginate remote data |
Common Use Cases
- Sales Dashboard: Combine column chart for revenue with line series for trends
- Time Series Analysis: Use date-time axis with line chart for temporal data
- Comparative Analysis: Multi-series column charts comparing categories
- Financial Analysis: Candlestick chart with moving average indicators
- Distribution Analysis: Histogram or box-whisker charts for statistical data
- Real-time Monitoring: Use
addPoint/removePointfor live feeds with smooth animation - Remote Data from REST API: Bind
DataManagerwithWebApiAdaptororODataAdaptordirectly to series - Server-side OData: Use
ODataV4Adaptorwith aQueryto filter and paginate at the server
Next Steps
Choose the reference that matches your current need:
- Need API details? → API Reference
- Starting out? → Getting Started
- Choosing chart type? → Chart Types
- Configuring axes? → Axes and Customization
- Binding data? → Series and Data
- Styling appearance? → Appearance and Styling
- Adding interactions? → User Interactions
- Advanced features? → Advanced Features
- Adding WebMCP or AI-agent access? → WebMCP
External Resources
- Official API Documentation: https://ej2.syncfusion.com/react/documentation/api/chart/
- Live Demos: https://ej2.syncfusion.com/react/demos/
- GitHub Repository: https://github.com/syncfusion/ej2-react-ui-components
FAQ
What does the syncfusion-react-charts skill do?
Implement Syncfusion React Charts component for data visualization. Use this when creating charts, configuring axes and series, or customizing visualization styles. This skill covers chart types, data binding, user interactions, financial indicators, accessibility features, and professional data visualization in React applications.
How do I install syncfusion-react-charts?
Run npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-charts in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-react-charts/ (personal) or .claude/skills/syncfusion-react-charts/ (project).
Which AI agents can use syncfusion-react-charts?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-react-charts safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-react-charts?
It is published by syncfusion in syncfusion/react-ui-components-skills. It has 750 recorded installs.
More from syncfusion/react-ui-components-skills
syncfusion-react-grid
syncfusion/react-ui-components-skills
Implements Syncfusion React Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.
syncfusion-react-scheduler
syncfusion/react-ui-components-skills
Implement Syncfusion React Scheduler component for calendar, event scheduling, and appointment management. Use this when building scheduling systems, calendar applications, booking systems, or time management interfaces. Covers all scheduler views (Day, Week, Month, Timeline, Agenda, Year), data binding, resource scheduling, recurring events, CRUD operations, drag-and-drop scheduling, customization, accessibility, and advanced features.
syncfusion-react-gantt-chart
syncfusion/react-ui-components-skills
Implement, configure, and customize the Syncfusion React Gantt Chart component. Use this when building project scheduling applications with task timelines, dependencies, resource management, and calendar-driven scheduling. Covers GanttComponent setup, task constraints, taskbar customization, filtering, sorting, Excel/PDF export, critical path analysis, milestones, predecessors, resource view, baseline tracking, and task calendar configuration.
syncfusion-react-rich-text-editor
syncfusion/react-ui-components-skills
Implements the Syncfusion React Rich Text Editor (RichTextEditorComponent) from ej2-react-richtexteditor, supporting HTML (WYSIWYG) and Markdown editing. Use this skill for toolbar configuration, image/video/audio insertion, paste cleanup, AI assistant integration, emoji picker, slash menu, mentions, import/export Word/PDF, form validation, and source code view in React applications.
syncfusion-react-treegrid
syncfusion/react-ui-components-skills
Implements Syncfusion React TreeGrid for hierarchical data with sorting, filtering, editing, exporting, paging, virtual scrolling, and advanced features. Supports configuration, CRUD, aggregates, templates, state persistence, and performance optimization in React applications.
syncfusion-react-common
syncfusion/react-ui-components-skills
Common utilities and features for Syncfusion React components. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, RTL support, localization, globalization, security, templates, and advanced features for Syncfusion React components.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.