/syncfusion-javascript:syncfusion-javascript-chartfrom Syncfusion JavaScript UI Controls
Implements Syncfusion JavaScript chart controls (Line, Area, Bar, Column, Pie, Polar, Radar, Waterfall, Stock). Use when building interactive data visualizations, dashboards, or real-time charts. Covers series and axes configuration, styling, animations, exporting, and technical indicators. Works with TypeScript (webpack/modules) and JavaScript (CDN/ES5).
Ships in Syncfusion JavaScript UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Syncfusion EJ2 Charts package provides a comprehensive collection of visualization components for building interactive, data-driven applications and dashboards.
Use the appropriate component for the required visualization:
Chart for Cartesian, statistical, financial, Polar, and Radar series.AccumulationChart for Pie, Doughnut, Funnel, and Pyramid visualizations.StockChart for financial dashboards that require built-in range selection, periods, indicators, and stock-specific controls.The package supports multiple series, axes, technical indicators, trendlines, animations, export, printing, accessibility, right-to-left rendering, and real-time data updates.
This skill covers TypeScript and JavaScript implementations.
TypeScript implementations use:
@syncfusion/ej2-charts.Chart.Inject(...).JavaScript implementations use:
ej.charts namespace.ej.charts.Chart.Inject(...).The configuration model is generally equivalent between TypeScript and JavaScript. However, package loading, imports, module injection, global namespace access, and type annotations differ between platforms.
Use this skill when you need to:
AccumulationChart.StockChart.Select the component before implementing the visualization.
Use Chart for:
Use AccumulationChart for:
A Doughnut Chart is a Pie series with a nonzero innerRadius.
Do not configure:
type: 'Doughnut'
Use:
type: 'Pie',
innerRadius: '50%'
Use StockChart when the application requires a stock-focused interface with features such as:
Read only the reference files relevant to the user's task.
📄 Read: TypeScript API Reference and JavaScript API Reference
WebMcpChart.new ej.charts.Chart(...) after loading the all-in-one browser script.registerWebMcpTools() or a manual registration button.Read references/getting-started.md for:
Read references/chart-types.md for:
Read references/series-configuration.md for:
Read references/axes-customization.md for:
Read references/features-interaction.md for:
Read references/styling-appearance.md for:
Read references/advanced-features.md for:
Read references/data-handling.md for:
DataManager.Read references/accessibility-rtl.md for:
Read references/troubleshooting.md for:
Follow these rules for every implementation.
Chart for Cartesian, statistical, Polar, Radar, and financial series.AccumulationChart for Pie, Doughnut, Funnel, and Pyramid.StockChart when built-in stock-specific controls are required.Import and inject every series, axis, and feature module used by the configuration.
import {
Category,
Chart,
LineSeries,
Tooltip
} from '@syncfusion/ej2-charts';
Chart.Inject(
LineSeries,
Category,
Tooltip
);
Common examples include:
LineSeries for Line Charts.ColumnSeries for Column Charts.StackingColumnSeries for stacked Column Charts.Category for Category axes.DateTime for DateTime axes.Tooltip for tooltips.Legend for legends.Selection for selection.Zoom for zooming and panning.DataLabel for Cartesian Chart data labels.Trendlines for trendlines.Export for exporting.ChartAnnotation for annotations.Always configure:
dataSource
xName
yName
Ensure that:
Date objects.Use:
legendSettings
palettes
selectionMode
zoomSettings
annotations
indicators
accessibility
Do not use:
legend
palette
selection
annotation
For a regular Cartesian Chart, configure data labels through:
marker: {
dataLabel: {
visible: true
}
}
Do not place dataLabel directly at the Cartesian series root.
Constructor target:
const chart: Chart = new Chart(
{
series: []
},
'#chart'
);
appendTo pattern:
const chart: Chart = new Chart({
series: []
});
chart.appendTo('#chart');
Do not attach the same instance twice.
When permanently removing a Chart:
chart.destroy().Install the package:
npm install @syncfusion/ej2-charts
Add the Chart container:
<div id="chart"></div>
Add a stable container size:
#chart {
width: 100%;
min-height: 420px;
}
Create the Chart:
import {
Chart,
DateTime,
LineSeries,
Tooltip
} from '@syncfusion/ej2-charts';
Chart.Inject(
LineSeries,
DateTime,
Tooltip
);
interface SalesData {
date: Date;
value: number;
}
const chart[To('#chart');
attach the same instance twice.
Up Resourcesvalue: 21
},
{
date: new Date(2026, 0, 2),
value: 24
},
{
date: new Date(2026, 0, 3),
value: 36
},
{
date: new Date(2026, 0, 4),
value: 38
},
{
date: new Date(2026, 0, 5),
value: 54
}
];
const chart: Chart = new Chart({
title: 'Sales Over Time',
primaryXAxis: {
valueType: 'DateTime',
labelFormat: 'dd MMM',
title: 'Date'
},
primaryYAxis: {
title: 'Sales'
},
tooltip: {
enable: true,
format:
'<b>${point.x:dd MMM yyyy}</b><br>' +
'Sales: ${point.y:n2}'
},
series: [
{
dataSource: chartData,
xName: 'date',
yName: 'value',
type: 'Line',
name: 'Sales',
marker: {
visible: true
}
}
]
});
chart.appendTo('#chart');
Module purpose:
LineSeries renders the Line series.DateTime supports the DateTime X-axis.Tooltip enables point tooltips.Use a consistent, pinned EJ2 version in production.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Sales Chart</title>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
<style>
#chart {
width: 100%;
min-height: 420px;
}
</style>
</head>
<body>
<div id="chart"></div>
<script>
ej.charts.Chart.Inject(
ej.charts.LineSeries,
ej.charts.DateTime,
ej.charts.Tooltip
);
var chartData = [
{
date: new Date(2026, 0, 1),
value: 21
},
{
date: new Date(2026, 0, 2),
value: 24
},
{
date: new Date(2026, 0, 3),
value: 36
},
{
date: new Date(2026, 0, 4),
value: 38
},
{
date: new Date(2026, 0, 5),
value: 54
}
];
var chart = new ej.charts.Chart({
title: 'Sales Over Time',
primaryXAxis: {
valueType: 'DateTime',
labelFormat: 'dd MMM',
title: 'Date'
},
primaryYAxis: {
title: 'Sales'
},
tooltip: {
enable: true,
format:
'<b>${point.x:dd MMM yyyy}</b><br>' +
'Sales: ${point.y:n2}'
},
series: [
{
dataSource: chartData,
xName: 'date',
yName: 'value',
type: 'Line',
name: 'Sales',
marker: {
visible: true
}
}
]
});
chart.appendTo('#chart');
</script>
</body>
</html>
When individual package scripts are required, load them in dependency order and use the same version.
<script src="https://cdn.syncfusion.com/ej2/34.2.2/ej2-base/dist/global/ej2-base.min.js"></script>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/ej2-data/dist/global/ej2-data.min.js"></script>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/ej2-svg-base/dist/global/ej2-svg-base.min.js"></script>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/ej2-charts/dist/global/ej2-charts.min.js"></script>
Do not load the consolidated EJ2 script together with individual package scripts.
Use regular Column series for side-by-side comparison.
Required modules:
import {
Category,
Chart,
ColumnSeries,
Legend,
Tooltip
} from '@syncfusion/ej2-charts';
Chart.Inject(
ColumnSeries,
Category,
Legend,
Tooltip
);
Configuration:
series: [
{
dataSource: chartData,
xName: 'month',
yName: 'sales',
type: 'Column',
name: 'Sales'
},
{
dataSource: chartData,
xName: 'month',
yName: 'revenue',
type: 'Column',
name: 'Revenue'
}
],
legendSettings: {
visible: true,
position: 'Bottom'
},
tooltip: {
enable: true,
shared: true
}
Required modules:
import {
Category,
Chart,
Legend,
StackingColumnSeries,
Tooltip
} from '@syncfusion/ej2-charts';
Chart.Inject(
StackingColumnSeries,
Category,
Legend,
Tooltip
);
Configuration:
series: [
{
dataSource: chartData,
xName: 'category',
yName: 'value1',
type: 'StackingColumn',
name: 'Current'
},
{
dataSource: chartData,
xName: 'category',
yName: 'value2',
type: 'StackingColumn',
name: 'Previous'
}
],
legendSettings: {
visible: true,
position: 'Bottom'
},
tooltip: {
enable: true,
shared: true
}
Use StackingColumn100 when each category must be normalized to 100 percent.
Use a bounded data window and disable animation for frequent updates.
interface RealTimeData {
timestamp: Date;
value: number;
}
let realTimeData: RealTimeData[] = [];
const maximumVisiblePoints: number = 100;
const updateInterval: number =
window.setInterval(() => {
const nextPoint: RealTimeData = {
timestamp: new Date(),
value:
Math.round(
Math.random() * 10000
) / 100
};
realTimeData = [
...realTimeData,
nextPoint
].slice(-maximumVisiblePoints);
chart.series[0].dataSource =
realTimeData;
chart.refresh();
}, 5000);
window.addEventListener(
'beforeunload',
(): void => {
window.clearInterval(
updateInterval
);
chart.destroy();
}
);
Apply all changes before calling refresh().
Inject Selection.
import {
Chart,
ColumnSeries,
Selection
} from '@syncfusion/ej2-charts';
Chart.Inject(
ColumnSeries,
Selection
);
Configure selection through Chart-level properties:
const chart: Chart = new Chart({
selectionMode: 'Point',
isMultiSelect: false,
selectionPattern:
'DiagonalForward',
selectionComplete: (args): void => {
console.log(
'Selected values:',
args.selectedDataValues
);
},
series: [
{
dataSource: chartData,
xName: 'category',
yName: 'value',
type: 'Column'
}
]
});
chart.appendTo('#chart');
Do not use pointRender as a selection event. pointRender customizes points before they are rendered.
Use AccumulationChart.
import {
AccumulationChart,
PieSeries
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
PieSeries
);
const pieChart:
AccumulationChart =
new AccumulationChart({
series: [
{
dataSource: chartData,
xName: 'category',
yName: 'value',
type: 'Pie'
}
]
});
pieChart.appendTo('#chart');
Create a Doughnut Chart by setting innerRadius.
series: [
{
dataSource: chartData,
xName: 'category',
yName: 'value',
type: 'Pie',
innerRadius: '50%'
}
]
Technical indicators belong in the Chart-level indicators collection.
import {
CandleSeries,
Chart,
DateTime,
LineSeries,
SmaIndicator
} from '@syncfusion/ej2-charts';
Chart.Inject(
CandleSeries,
LineSeries,
DateTime,
SmaIndicator
);
series: [
{
dataSource: stockData,
xName: 'date',
open: 'open',
high: 'high',
low: 'low',
close: 'close',
type: 'Candle',
name: 'Price'
}
],
indicators: [
{
dataSource: stockData,
xName: 'date',
close: 'close',
type: 'Sma',
period: 20,
seriesName: 'Price',
name: 'SMA 20'
}
]
Do not add an indicator to the normal series collection.
primaryXAxis: Configures the primary X-axis.primaryYAxis: Configures the primary Y-axis.axes: Defines additional axes.rows: Defines horizontal Chart panes.columns: Defines vertical Chart panes.series: Defines Cartesian and financial series.indicators: Defines technical indicators.annotations: Defines custom HTML annotations.tooltip: Configures Chart tooltips.legendSettings: Configures the legend.crosshair: Configures crosshair interaction.zoomSettings: Configures zooming and panning.selectionMode: Configures point, series, or cluster selection.selectedDataIndexes: Defines initial selection.palettes: Defines the Chart color collection.theme: Selects a built-in theme.background: Configures the Chart background.chartArea: Configures the plotting area.title: Defines the Chart title.subTitle: Defines the Chart subtitle.height: Configures the Chart height.width: Configures the Chart width.enableCanvas: Enables Canvas rendering.enableRtl: Enables right-to-left rendering.accessibility: Configures Chart-level accessibility.dataSource: Defines the series data.xName: Maps the X-value field.yName: Maps the numeric Y-value field.type: Selects the series type.name: Defines the legend and tooltip series name.visible: Controls initial series visibility.fill: Configures the series color.width: Configures compatible line width.opacity: Configures series opacity.border: Configures series borders.marker: Configures point markers.marker.dataLabel: Configures Cartesian Chart data labels.pointColorMapping: Maps point colors from the data source.emptyPointSettings: Configures missing values.trendlines: Defines trendlines for a compatible series.animation: Configures series animation.xAxisName: Associates a series with a named X-axis.yAxisName: Associates a series with a named Y-axis.stackingGroup: Groups compatible stacked series.accessibility: Configures series and point accessibility.series: Defines Pie, Doughnut, Funnel, or Pyramid series.legendSettings: Configures the accumulation legend.tooltip: Configures accumulation tooltips.enableSmartLabels: Reduces label overlap.accessibilityDescription: Describes the visualization.focusable: Controls Chart focusability.focusBorderColor: Configures the focus border.focusBorderWidth: Configures focus-border width.focusBorderMargin: Configures focus-border spacing.import { Chart, WebMcpChart } from '@syncfusion/ej2-charts';
// The complete WebMCP sample must import and inject all available Chart feature modules.
Chart.Inject(WebMcpChart);
// No imports and no Chart.Inject(...) for global-bundle JavaScript WebMCP samples.
var chart = new ej.charts.Chart({ enableWebMcp: true });
references/API-Reference_JavaScript.md (opens in a new tab)references/API-Reference_TypeScript.md (opens in a new tab)references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/accessibility-rtl.md (opens in a new tab)references/advanced-features.md (opens in a new tab)references/api-reference.md (opens in a new tab)references/axes-customization.md (opens in a new tab)references/chart-types.md (opens in a new tab)references/data-handling.md (opens in a new tab)references/features-interaction.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/series-configuration.md (opens in a new tab)references/styling-appearance.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/webmcp.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascriptOther plugins' skills for the same job
67 skills in this plugin
/syncfusion-javascript-3d-chartCreate interactive 3D charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build 3D visualizations, render 3D column/bar charts, configure 3D rotation and depth, visualize data in three dimensions, customize 3D chart appearance, handle 3D interactions, or implement advanced 3D features. Works with TypeScript (webpack/module-based) and JavaScript (CDN/ES5)./syncfusion-javascript-accordionBuild collapsible navigation panels with the Syncfusion TypeScript Accordion component. Use this skill when implementing vertical accordion menus, expanding/collapsing content panels, multi-step wizards, data-driven panels with dynamic content, tabbed navigation alternatives, or nested hierarchical content structures. Covers initialization, expand modes, animations, icons, templates, styling, data binding, and advanced use cases like form wizards./syncfusion-javascript-accumulation-chartImplements Syncfusion JavaScript accumulation charts (Pie, Doughnut, Funnel, Pyramid) for proportional and percentage-based visualizations. Use when displaying categorical or proportional data. Covers legend and label configuration, interactivity, accessibility, and customization. Works with TypeScript (modules) and JavaScript (CDN/ES5).