/syncfusion-javascript:syncfusion-javascript-accumulation-chartfrom Syncfusion JavaScript UI Controls
Implements 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).
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 Accumulation Chart visualizes categorical values through Pie, Doughnut, Funnel, and Pyramid presentations.
This skill covers framework-neutral implementations for:
A separate Syncfusion theme stylesheet is not required solely for the focused Accumulation Chart examples. Apply the visual theme through the chart-level theme property.
Use TypeScript when the application requires:
Install:
npm install @syncfusion/ej2-charts
Import:
import {
AccumulationChart
} from '@syncfusion/ej2-charts';
Optional features require their corresponding modules to be imported and injected before constructing the chart.
Use module-based JavaScript when the application uses:
AccumulationChart.Inject(...) calls.Install:
npm install @syncfusion/ej2-charts
Import:
import {
AccumulationChart
} from '@syncfusion/ej2-charts';
Use global JavaScript when the application uses:
ej.charts.AccumulationChart constructor.Use the versioned complete bundle:
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
Do not call AccumulationChart.Inject(...) when using the complete global EJ2 bundle.
Browser compatibility must follow the supported-browser matrix of the installed EJ2 version.
Use this skill when a task requires:
Use another visualization when it communicates the data more accurately:
Use Pie to show categorical contributions to a whole.
type:
'Pie'
A Doughnut Chart uses a Pie series with a nonzero innerRadius.
type:
'Pie',
innerRadius:
'40%'
Do not use:
type:
'Doughnut'
unless the installed API explicitly introduces that series value.
Use Funnel for ordered stages, pipelines, or conversion processes.
type:
'Funnel'
Use Pyramid for proportional or hierarchical segments.
type:
'Pyramid'
Choose the reference that matches the task.
📄 Read: references/getting-started.md
Use this reference for:
📄 Read: references/chart-types.md
Use this reference for:
📄 Read: references/legend-configuration.md
Use this reference for:
📄 Read: references/data-labels.md
Use this reference for:
📄 Read: references/tooltips-and-selection.md
Use this reference for:
📄 Read: references/annotations-and-features.md
Use this reference for:
📄 Read: references/customization-and-styling.md
Use this reference for:
📄 Read: references/accessibility-and-advanced.md
Use this reference for:
Do not copy APIs from ordinary Cartesian Chart without validating their Accumulation Chart-specific modules and models.
Import and inject only the modules required by the implementation.
Pie and Doughnut -> PieSeries
Funnel -> FunnelSeries
Pyramid -> PyramidSeries
Data labels -> AccumulationDataLabel
Legend -> AccumulationLegend
Tooltip -> AccumulationTooltip
Selection -> AccumulationSelection
Highlight -> AccumulationHighlight
Annotations -> AccumulationAnnotation
Print -> Validated Accumulation Chart print module
Image export -> Validated Accumulation Chart image-export module
PDF export -> Validated Accumulation Chart PDF-export module
Validate optional module names against the installed @syncfusion/ej2-charts declarations.
A Pie Chart with labels, a legend, and a tooltip requires:
import {
AccumulationChart,
AccumulationDataLabel,
AccumulationLegend,
AccumulationTooltip,
PieSeries
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
PieSeries,
AccumulationDataLabel,
AccumulationLegend,
AccumulationTooltip
);
A minimal Pie Chart requires:
import {
AccumulationChart,
PieSeries
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
PieSeries
);
A Funnel Chart requires:
import {
AccumulationChart,
FunnelSeries
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
FunnelSeries
);
A Pyramid Chart requires:
import {
AccumulationChart,
PyramidSeries
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
PyramidSeries
);
Keep imports and injection synchronized.
Do not use the ordinary Chart tooltip module:
Tooltip
Use:
AccumulationTooltip
Use a consistent host:
<div id="accumulation-chart"></div>
Provide measurable dimensions:
.chart-wrapper {
width: 100%;
max-width: 1000px;
margin: 0 auto;
}
#accumulation-chart {
width: 100%;
min-height: 500px;
}
Validate the host:
const host:
HTMLElement | null =
document.getElementById(
'accumulation-chart'
);
if (!host) {
throw new Error(
'The Accumulation Chart host "#accumulation-chart" was not found.'
);
}
Prefer explicit construction and attachment:
const chart:
AccumulationChart =
new AccumulationChart({
// Configuration
});
chart.appendTo(
host
);
Use a typed model:
interface CategoryShare {
category: string;
value: number;
label: string;
}
Define meaningful data:
const chartData:
CategoryShare[] = [
{
category:
'January',
value:
22,
label:
'January: 22%'
},
{
category:
'February',
value:
24,
label:
'February: 24%'
},
{
category:
'March',
value:
26,
label:
'March: 26%'
},
{
category:
'April',
value:
28,
label:
'April: 28%'
}
];
Validate before rendering:
const validateCategoryShares = (
data:
CategoryShare[],
requirePercentageTotal:
boolean
): void => {
if (
data.length ===
0
) {
throw new Error(
'The Accumulation Chart requires at least one data point.'
);
}
const categories:
Set<string> =
new Set<string>();
let positiveValueFound:
boolean =
false;
let total:
number =
0;
data.forEach(
(
item:
CategoryShare,
index:
number
): void => {
const category:
string =
item.category.trim();
if (!category) {
throw new Error(
'Data point ' +
index +
' requires a category.'
);
}
if (
categories.has(
category
)
) {
throw new Error(
'Duplicate category: ' +
category
);
}
if (
!Number.isFinite(
item.value
) ||
item.value < 0
) {
throw new Error(
'Data point "' +
category +
'" requires a finite nonnegative value.'
);
}
if (
item.value > 0
) {
positiveValueFound =
true;
}
if (
!item.label.trim()
) {
throw new Error(
'Data point "' +
category +
'" requires a label.'
);
}
total +=
item.value;
categories.add(
category
);
}
);
if (
!positiveValueFound
) {
throw new Error(
'At least one data point must have a positive value.'
);
}
if (
requirePercentageTotal &&
Math.abs(
total -
100
) >
0.0001
) {
throw new Error(
'Percentage data must total 100.'
);
}
};
Call validation:
validateCategoryShares(
chartData,
true
);
Do not require a total of 100 when the chart displays raw values rather than percentages.
import {
AccumulationChart,
AccumulationDataLabel,
AccumulationLegend,
AccumulationTooltip,
PieSeries
} from '@syncfusion/ej2-charts';
interface CategoryShare {
category: string;
value: number;
label: string;
}
AccumulationChart.Inject(
PieSeries,
AccumulationDataLabel,
AccumulationLegend,
AccumulationTooltip
);
const chartData:
CategoryShare[] = [
{
category:
'January',
value:
22,
label:
'January: 22%'
},
{
category:
'February',
value:
24,
label:
'February: 24%'
},
{
category:
'March',
value:
26,
label:
'March: 26%'
},
{
category:
'April',
value:
28,
label:
'April: 28%'
}
];
const host:
HTMLElement | null =
document.getElementById(
'accumulation-chart'
);
if (!host) {
throw new Error(
'The Accumulation Chart host was not found.'
);
}
const chart:
AccumulationChart =
new AccumulationChart({
width:
'100%',
height:
'500px',
theme:
'Fluent2',
title:
'Monthly Distribution',
series: [
{
dataSource:
chartData,
xName:
'category',
yName:
'value',
type:
'Pie',
name:
'Distribution',
dataLabel: {
visible:
true,
position:
'Outside',
name:
'label'
}
}
],
tooltip: {
enable:
true
},
legendSettings: {
visible:
true,
position:
'Right'
}
});
chart.appendTo(
host
);
A separate Syncfusion theme stylesheet is not required solely for this focused Accumulation Chart example.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>EJ2 Accumulation Chart</title>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
<style>
#accumulation-chart {
width: 100%;
min-height: 500px;
}
</style>
</head>
<body>
<div id="accumulation-chart"></div>
<script>
if (
typeof window.ej ===
'undefined' ||
!window.ej.charts ||
!window.ej.charts.AccumulationChart
) {
throw new Error(
'The EJ2 Accumulation Chart global bundle was not loaded.'
);
}
var chartData = [
{
category:
'January',
value:
22,
label:
'January: 22%'
},
{
category:
'February',
value:
24,
label:
'February: 24%'
},
{
category:
'March',
value:
26,
label:
'March: 26%'
},
{
category:
'April',
value:
28,
label:
'April: 28%'
}
];
var chart =
new ej.charts.AccumulationChart({
width:
'100%',
height:
'500px',
theme:
'Fluent2',
title:
'Monthly Distribution',
series: [
{
dataSource:
chartData,
xName:
'category',
yName:
'value',
type:
'Pie',
name:
'Distribution',
dataLabel: {
visible:
true,
position:
'Outside',
name:
'label'
}
}
],
tooltip: {
enable:
true
},
legendSettings: {
visible:
true,
position:
'Right'
}
});
chart.appendTo(
'#accumulation-chart'
);
</script>
</body>
</html>
Do not call AccumulationChart.Inject(...) with the complete global bundle.
const chart:
AccumulationChart =
new AccumulationChart({
series: [
{
dataSource:
chartData,
xName:
'category',
yName:
'value',
type:
'Pie'
}
],
legendSettings: {
visible:
true,
position:
'Right'
}
});
chart.appendTo(
'#accumulation-chart'
);
Use a Pie series with innerRadius:
const chart:
AccumulationChart =
new AccumulationChart({
series: [
{
dataSource:
chartData,
xName:
'category',
yName:
'value',
type:
'Pie',
innerRadius:
'40%'
}
],
centerLabel: {
text:
'Sales',
hoverTextFormat:
'${point.x}: ${point.y}'
}
});
chart.appendTo(
'#accumulation-chart'
);
Do not use:
type:
'Doughnut'
The center label is intended for Pie or Doughnut-style visualizations.
import {
AccumulationChart,
AccumulationDataLabel,
FunnelSeries
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
FunnelSeries,
AccumulationDataLabel
);
interface FunnelStage {
stage: string;
users: number;
label: string;
}
const stageData:
FunnelStage[] = [
{
stage:
'Visited',
users:
1000,
label:
'Visited: 1,000'
},
{
stage:
'Downloaded',
users:
760,
label:
'Downloaded: 760'
},
{
stage:
'Subscribed',
users:
420,
label:
'Subscribed: 420'
},
{
stage:
'Renewed',
users:
190,
label:
'Renewed: 190'
}
];
const chart:
AccumulationChart =
new AccumulationChart({
series: [
{
dataSource:
stageData,
xName:
'stage',
yName:
'users',
type:
'Funnel',
width:
'70%',
height:
'80%',
neckWidth:
'15%',
neckHeight:
'5%',
gapRatio:
0.08,
dataLabel: {
visible:
true,
position:
'Inside',
name:
'label'
}
}
]
});
chart.appendTo(
'#accumulation-chart'
);
A Funnel Chart does not automatically calculate conversion rates. Calculate rates in application code when required.
import {
AccumulationChart,
AccumulationDataLabel,
PyramidSeries
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
PyramidSeries,
AccumulationDataLabel
);
const chart:
AccumulationChart =
new AccumulationChart({
series: [
{
dataSource:
chartData,
xName:
'category',
yName:
'value',
type:
'Pyramid',
pyramidMode:
'Linear',
gapRatio:
0.05,
dataLabel: {
visible:
true,
position:
'Inside',
name:
'label'
}
}
]
});
chart.appendTo(
'#accumulation-chart'
);
Use a validated Pyramid mode such as:
Linear
Surface
Do not add:
reverse:
true
unless the installed Pyramid model explicitly supports it.
Import and inject:
import {
AccumulationDataLabel
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
AccumulationDataLabel
);
Configure labels inside the series:
dataLabel: {
visible:
true,
position:
'Outside',
name:
'label'
}
Do not configure accumulation data labels at the chart root.
Use percentage labels only when the application values represent percentages or when the percentage has been calculated correctly.
Import and inject:
import {
AccumulationTooltip
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
AccumulationTooltip
);
Enable:
tooltip: {
enable:
true,
format:
'${point.x}: ${point.y}'
}
Executable HTML can be used only when supported and necessary:
format:
'${point.x}: <b>${point.y}</b>'
Do not use encoded HTML:
format:
'${point.x}: <b>${point.y}</b>'
Do not append % unless the values are percentages.
Import and inject:
import {
AccumulationSelection
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
AccumulationSelection
);
Configure a selection mode validated by the installed Accumulation Chart model.
selectionMode:
'Point'
Validate selection patterns and multiple-selection support before documenting them.
Do not assume ordinary Cartesian Chart series-selection behavior applies identically.
Import and inject:
import {
AccumulationHighlight
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
AccumulationHighlight
);
Configure only modes and patterns supported by the installed package.
Do not enable highlighting solely as decoration when it reduces contrast or readability.
Import and inject:
import {
AccumulationAnnotation
} from '@syncfusion/ej2-charts';
AccumulationChart.Inject(
AccumulationAnnotation
);
Annotations and Doughnut center labels are different features.
Use annotations for contextual HTML content positioned relative to the chart.
Use centerLabel for content displayed in a Doughnut-like center.
Do not make annotation content the only source of essential information.
Map point colors from data when required:
interface CategoryShare {
category: string;
value: number;
color: string;
}
series: [
{
dataSource:
chartData,
xName:
'category',
yName:
'value',
pointColorMapping:
'color',
type:
'Pie'
}
]
Do not list an ordinary Chart marker property as a universal Accumulation series option.
Pie, Funnel, and Pyramid points are rendered as segments, not Cartesian markers.
Enable point explosion:
series: [
{
type:
'Pie',
explode:
true,
explodeIndex:
0,
explodeOffset:
'10%'
}
]
Use explosion sparingly. Excessive separated segments can make the whole harder to interpret.
Validate gapRatio:
const validateGapRatio = (
value:
number
): void => {
if (
!Number.isFinite(
value
) ||
value < 0 ||
value > 1
) {
throw new Error(
'The gap ratio must be between 0 and 1.'
);
}
};
Apply a built-in chart theme:
theme:
'Fluent2'
A separate Syncfusion theme package or stylesheet is not required solely for the focused Accumulation Chart examples.
Use application-owned CSS for:
Example:
.chart-card {
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 12px;
}
#accumulation-chart {
width: 100%;
min-height: 500px;
}
Validate the selected theme against the installed Accumulation Chart theme model.
Replace the series data source:
chart.series[0]
.dataSource =
updatedData;
chart.dataBind();
Update the title:
chart.title =
'Updated Distribution';
chart.dataBind();
Batch changes:
chart.title =
'Updated Distribution';
chart.series[0]
.dataSource =
updatedData;
chart.dataBind();
Use dataBind() for ordinary property changes.
Use refresh() when:
Support accessible implementation through:
Do not claim automatic WCAG compliance.
Do not rely only on:
Provide a table for exact values:
<table>
<caption>
Category distribution
</caption>
<thead>
<tr>
<th scope="col">Category</th>
<th scope="col">Value</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">January</th>
<td>22%</td>
</tr>
</tbody>
</table>
Validate the chart-level and series-level accessibility models against the installed package before configuring advanced accessibility properties.
dataBind() once after related changes.refresh() only for layout recalculation.chart.destroy();
✅ @syncfusion/ej2-charts is installed.
✅ No external theme package is required solely for AccumulationChart.
✅ A supported built-in theme is configured through theme.
✅ AccumulationChart is imported.
✅ PieSeries is injected for Pie and Doughnut.
✅ FunnelSeries is injected for Funnel.
✅ PyramidSeries is injected for Pyramid.
✅ AccumulationDataLabel is injected when labels are visible.
✅ AccumulationLegend is injected when the legend is visible.
✅ AccumulationTooltip is injected when tooltips are enabled.
✅ AccumulationSelection is injected when selection is enabled.
✅ AccumulationHighlight is injected
references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/accessibility-and-advanced.md (opens in a new tab)references/annotations-and-features.md (opens in a new tab)references/api-reference.md (opens in a new tab)references/chart-types.md (opens in a new tab)references/customization-and-styling.md (opens in a new tab)references/data-labels.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/legend-configuration.md (opens in a new tab)references/tooltips-and-selection.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-ai-assistviewImplement the Syncfusion JavaScript AI AssistView control (ej2-interactive-chat). Use this skill for AI assistant and AI chat UIs, prompt-response interfaces, AI integration (OpenAI, Gemini, Ollama, LiteLLM, MCP), chat toolbars, file attachments, speech-to-text, text-to-speech, custom AI views, prompt suggestions, markdown responses, chain of thoughts and thinking blocks (AssistThinking), generative UI and interactive tool cards (registerToolUI), telemetry (telemetrySettings, token usage, duration and tool call metrics), mentions (mentionChar, mention popup, filtering, templates, mentionSelect), response animation and templates, loading indicators, or any interactive AI assistant interface.