/syncfusion-javascript:syncfusion-javascript-circular-chart-3dfrom Syncfusion JavaScript UI Controls
Create interactive 3D circular charts (Pie, Doughnut) in Syncfusion TypeScript and JavaScript. ALWAYS use this skill when the user needs to implement 3D pie charts, 3D doughnut charts, 3D circular visualizations, data labels, legends, tooltips, or any 3D circular chart features. Immediately helpful for chart setup, data binding, customization, styling, export, and accessibility. Works with TypeScript (webpack/module-based) 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 Essential JS 2 3D Circular Chart visualizes part-to-whole data as three-dimensional pie and doughnut charts.
Use this skill to create, configure, customize, update, export, print, and troubleshoot the CircularChart3D component in TypeScript and global JavaScript applications.
This skill prioritizes:
Use TypeScript when the application uses:
@syncfusion/ej2-charts npm package.TypeScript imports the required chart classes and modules from:
@syncfusion/ej2-charts
Each enabled feature must be imported and injected before the chart instance is created.
Example:
import {
CircularChart3D,
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
);
Use global JavaScript when the application uses:
ej namespace.The 3D Circular Chart constructor is available through:
ej.charts.CircularChart3D
The global EJ2 chart bundle includes the chart feature modules. Explicit CircularChart3D.Inject(...) calls are generally unnecessary when using the complete global bundle.
The examples use syntax that is compatible with modern browsers.
When strict ES5 compatibility is required:
var instead of const and let.Use this skill when the task requires any of the following:
Determine every feature enabled in the chart before writing the import statement.
Feature-to-module mapping:
3D pie or doughnut series -> PieSeries3D
Data labels -> CircularChartDataLabel3D
Legend -> CircularChartLegend3D
Tooltip -> CircularChartTooltip3D
Export -> CircularChartExport3D
If a feature appears in the chart configuration, its corresponding module must be imported and injected.
Correct:
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
);
const chart: CircularChart3D = new CircularChart3D({
// Configuration
});
Incorrect:
const chart: CircularChart3D = new CircularChart3D({
// Configuration
});
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D
);
Every injected module must be imported.
Every imported feature module should be injected when that feature is used.
Correct:
import {
CircularChart3D,
PieSeries3D,
CircularChartLegend3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartLegend3D
);
Create the chart first and then call appendTo.
const chart: CircularChart3D = new CircularChart3D({
// Configuration
});
chart.appendTo('#chart');
Use the same pattern in JavaScript:
var chart = new ej.charts.CircularChart3D({
// Configuration
});
chart.appendTo('#chart');
Required HTML:
<div id="chart"></div>
Required attachment:
chart.appendTo('#chart');
The selector must match the host element ID exactly.
For this data:
const data = [
{
browser: 'Chrome',
share: 62.92
}
];
Use:
series: [{
dataSource: data,
xName: 'browser',
yName: 'share'
}]
Do not use:
xName: 'x',
yName: 'y'
unless the data objects actually contain x and y properties.
subTitle, Not subtitleCorrect:
subTitle: '2023'
Incorrect:
subtitle: '2023'
A runnable TypeScript example should include:
Imports
Module injection
Typed data
Chart configuration
appendTo call
Required HTML host
A runnable global JavaScript example should include:
Valid script references
Data
Chart configuration
appendTo call
Required HTML host
📄 Read: references/getting-started.md
Use this reference for:
📄 Read: references/pie-and-doughnut-charts.md
Use this reference for:
innerRadius behavior.📄 Read: references/data-labels.md
Use this reference for:
name.textRender.📄 Read: references/legends-tooltips-and-titles.md
Use this reference for:
📄 Read: references/styling-customization-and-export.md
Use this reference for:
📄 Read: references/empty-points-and-accessibility.md
Use this reference for:
<div id="chart"></div>
import {
CircularChart3D,
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
);
interface BrowserData {
browser: string;
share: number;
}
const data: BrowserData[] = [
{
browser: 'Chrome',
share: 62.92
},
{
browser: 'Firefox',
share: 15.23
},
{
browser: 'Safari',
share: 19.97
},
{
browser: 'Others',
share: 2.88
}
];
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '500px',
title: 'Browser Market Share',
subTitle: '2023',
tilt: -45,
rotation: 0,
depth: 50,
legendSettings: {
visible: true,
position: 'Right',
alignment: 'Center'
},
tooltip: {
enable: true,
format: '${point.x}: <b>${point.y:n2}%</b>'
},
series: [{
name: 'Market Share',
dataSource: data,
xName: 'browser',
yName: 'share',
radius: '80%',
innerRadius: '0%',
dataLabel: {
visible: true,
position: 'Outside',
name: 'browser',
connectorStyle: {
length: '40px',
width: 1,
color: '#666666'
}
}
}]
});
chart.appendTo('#chart');
1. PieSeries3D renders a solid 3D pie.
2. The browser field supplies category names.
3. The share field controls segment angles.
4. CircularChartDataLabel3D renders outside labels.
5. CircularChartLegend3D renders the legend.
6. CircularChartTooltip3D renders hover information.
7. The title and subtitle describe the visualization.
8. appendTo attaches the chart to the HTML host.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>3D Circular Chart</title>
<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>
</head>
<body>
<div id="chart"></div>
<script src="index.js"></script>
</body>
</html>
var data = [
{
browser: 'Chrome',
share: 62.92
},
{
browser: 'Firefox',
share: 15.23
},
{
browser: 'Safari',
share: 19.97
},
{
browser: 'Others',
share: 2.88
}
];
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '500px',
title: 'Browser Market Share',
subTitle: '2023',
tilt: -45,
rotation: 0,
depth: 50,
legendSettings: {
visible: true,
position: 'Right',
alignment: 'Center'
},
tooltip: {
enable: true,
format: '${point.x}: <b>${point.y:n2}%</b>'
},
series: [{
name: 'Market Share',
dataSource: data,
xName: 'browser',
yName: 'share',
radius: '80%',
innerRadius: '0%',
dataLabel: {
visible: true,
position: 'Outside',
name: 'browser',
connectorStyle: {
length: '40px',
width: 1,
color: '#666666'
}
}
}]
});
chart.appendTo('#chart');
Load the application script after the Syncfusion scripts.
Correct order:
1. ej2-base
2. ej2-data
3. ej2-svg-base
4. ej2-charts
5. index.js
If index.js loads before the Syncfusion chart script, the global ej namespace may be unavailable.
Use this pattern for a simple part-to-whole visualization with category identification through a legend.
import {
CircularChart3D,
PieSeries3D,
CircularChartLegend3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartLegend3D
);
interface CategoryData {
category: string;
value: number;
}
const data: CategoryData[] = [
{
category: 'Category A',
value: 35
},
{
category: 'Category B',
value: 40
},
{
category: 'Category C',
value: 25
}
];
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '450px',
title: 'Category Distribution',
tilt: -45,
legendSettings: {
visible: true,
position: 'Right'
},
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
innerRadius: '0%'
}]
});
chart.appendTo('#chart');
var data = [
{
category: 'Category A',
value: 35
},
{
category: 'Category B',
value: 40
},
{
category: 'Category C',
value: 25
}
];
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '450px',
title: 'Category Distribution',
tilt: -45,
legendSettings: {
visible: true,
position: 'Right'
},
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
innerRadius: '0%'
}]
});
chart.appendTo('#chart');
A doughnut chart uses PieSeries3D with an innerRadius greater than 0%.
No separate doughnut-series module is required.
import {
CircularChart3D,
PieSeries3D,
CircularChartLegend3D,
CircularChartTooltip3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartLegend3D,
CircularChartTooltip3D
);
interface SalesData {
category: string;
value: number;
}
const data: SalesData[] = [
{
category: 'Hardware',
value: 35
},
{
category: 'Software',
value: 45
},
{
category: 'Services',
value: 20
}
];
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '450px',
title: 'Sales Distribution',
subTitle: 'Doughnut View',
tilt: -45,
legendSettings: {
visible: true,
position: 'Right'
},
tooltip: {
enable: true,
format: '${point.x}: <b>${point.y}</b>'
},
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
radius: '80%',
innerRadius: '40%'
}]
});
chart.appendTo('#chart');
var data = [
{
category: 'Hardware',
value: 35
},
{
category: 'Software',
value: 45
},
{
category: 'Services',
value: 20
}
];
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '450px',
title: 'Sales Distribution',
subTitle: 'Doughnut View',
tilt: -45,
legendSettings: {
visible: true,
position: 'Right'
},
tooltip: {
enable: true,
format: '${point.x}: <b>${point.y}</b>'
},
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
radius: '80%',
innerRadius: '40%'
}]
});
chart.appendTo('#chart');
innerRadius: '0%' -> Pie
innerRadius: '40%' -> Doughnut
Use outside labels when:
import {
CircularChart3D,
PieSeries3D,
CircularChartDataLabel3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D
);
interface SalesData {
category: string;
value: number;
}
const data: SalesData[] = [
{
category: 'North America',
value: 45
},
{
category: 'Europe',
value: 30
},
{
category: 'Asia Pacific',
value: 20
},
{
category: 'Other Regions',
value: 5
}
];
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '500px',
title: 'Regional Sales',
tilt: -45,
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
radius: '75%',
dataLabel: {
visible: true,
position: 'Outside',
name: 'category',
connectorStyle: {
length: '40px',
width: 2,
color: '#666666'
},
font: {
fontFamily: 'Segoe UI',
fontWeight: '600',
size: '12px',
color: '#333333'
}
}
}]
});
chart.appendTo('#chart');
var data = [
{
category: 'North America',
value: 45
},
{
category: 'Europe',
value: 30
},
{
category: 'Asia Pacific',
value: 20
},
{
category: 'Other Regions',
value: 5
}
];
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '500px',
title: 'Regional Sales',
tilt: -45,
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
radius: '75%',
dataLabel: {
visible: true,
position: 'Outside',
name: 'category',
connectorStyle: {
length: '40px',
width: 2,
color: '#666666'
},
font: {
fontFamily: 'Segoe UI',
fontWeight: '600',
size: '12px',
color: '#333333'
}
}
}]
});
chart.appendTo('#chart');
Use tooltips when exact values should appear during pointer interaction without permanently occupying chart space.
import {
CircularChart3D,
PieSeries3D,
CircularChartTooltip3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartTooltip3D
);
interface BrowserData {
browser: string;
share: number;
}
const data: BrowserData[] = [
{
browser: 'Chrome',
share: 62.92
},
{
browser: 'Firefox',
share: 15.23
},
{
browser: 'Safari',
share: 19.97
},
{
browser: 'Others',
share: 2.88
}
];
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '450px',
title: 'Browser Market Share',
tilt: -45,
tooltip: {
enable: true,
header: 'Market Share',
format: '${point.x}: <b>${point.y:n2}%</b>'
},
series: [{
name: 'Browser Share',
dataSource: data,
xName: 'browser',
yName: 'share'
}]
});
chart.appendTo('#chart');
var data = [
{
browser: 'Chrome',
share: 62.92
},
{
browser: 'Firefox',
share: 15.23
},
{
browser: 'Safari',
share: 19.97
},
{
browser: 'Others',
share: 2.88
}
];
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '450px',
title: 'Browser Market Share',
tilt: -45,
tooltip: {
enable: true,
header: 'Market Share',
format: '${point.x}: <b>${point.y:n2}%</b>'
},
series: [{
name: 'Browser Share',
dataSource: data,
xName: 'browser',
yName: 'share'
}]
});
chart.appendTo('#chart');
Use selection when users must keep a point visually selected.
Use highlighting when users need temporary emphasis during interaction.
Required modules must be validated against the selected mode and installed EJ2 version before implementation.
import {
CircularChart3D,
PieSeries3D,
CircularChartSelection3D,
CircularChartHighlight3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartSelection3D,
CircularChartHighlight3D
);
interface CategoryData {
category: string;
value: number;
}
const data: CategoryData[] = [
{
category: 'Category A',
value: 40
},
{
category: 'Category B',
value: 35
},
{
category: 'Category C',
value: 25
}
];
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '450px',
title: 'Interactive Distribution',
tilt: -45,
selectionMode: 'Point',
highlightMode: 'Point',
series: [{
dataSource: data,
xName: 'category',
yName: 'value'
}]
});
chart.appendTo('#chart');
var data = [
{
category: 'Category A',
value: 40
},
{
category: 'Category B',
value: 35
},
{
category: 'Category C',
value: 25
}
];
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '450px',
title: 'Interactive Distribution',
tilt: -45,
selectionMode: 'Point',
highlightMode: 'Point',
series: [{
dataSource: data,
xName: 'category',
yName: 'value'
}]
});
chart.appendTo('#chart');
Do not assume that Series is a valid selection or highlight mode for the 3D Circular Chart unless the installed API explicitly supports it.
<button id="updateButton" type="button">
Update Data
</button>
<div id="chart"></div>
import {
CircularChart3D,
PieSeries3D,
CircularChartDataLabel3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D
);
interface SalesData {
category: string;
value: number;
}
const initialData: SalesData[] = [
{
category: 'Hardware',
value: 35
},
{
category: 'Software',
value: 45
},
{
category: 'Services',
value: 20
}
];
const updatedData: SalesData[] = [
{
category: 'Hardware',
value: 30
},
{
category: 'Software',
value: 50
},
{
category: 'Services',
value: 20
}
];
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '450px',
title: 'Sales Distribution',
tilt: -45,
series: [{
dataSource: initialData,
xName: 'category',
yName: 'value',
dataLabel: {
visible: true,
position: 'Outside',
name: 'category'
}
}]
});
chart.appendTo('#chart');
const updateButton: HTMLElement | null =
document.getElementById('updateButton');
if (updateButton) {
updateButton.addEventListener('click', (): void => {
chart.series[0].dataSource = updatedData;
chart.refresh();
});
}
var initialData = [
{
category: 'Hardware',
value: 35
},
{
category: 'Software',
value: 45
},
{
category: 'Services',
value: 20
}
];
var updatedData = [
{
category: 'Hardware',
value: 30
},
{
category: 'Software',
value: 50
},
{
category: 'Services',
value: 20
}
];
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '450px',
title: 'Sales Distribution',
tilt: -45,
series: [{
dataSource: initialData,
xName: 'category',
yName: 'value',
dataLabel: {
visible: true,
position: 'Outside',
name: 'category'
}
}]
});
chart.appendTo('#chart');
var updateButton =
document.getElementById('updateButton');
if (updateButton) {
updateButton.addEventListener('click', function () {
chart.series[0].dataSource = updatedData;
chart.refresh();
});
}
seriesContains the series configurations.
series: [{
dataSource: data,
xName: 'category',
yName: 'value'
}]
widthControls chart width.
width: '100%'
heightControls chart height.
height: '500px'
titleSets the primary title.
title: 'Browser Market Share'
subTitleSets secondary title text.
subTitle: '2023'
tiltControls the vertical 3D viewing angle.
tilt: -45
rotationRotates the chart around its vertical axis.
rotation: 30
depthControls the 3D thickness.
depth: 50
enableRotationEnables pointer-driven chart rotation.
enableRotation: true
themeApplies a supported built-in theme.
theme: 'Material'
backgroundSets the chart background.
background: '#ffffff'
borderSets chart-border color and width.
border: {
width: 1,
color: '#dddddd'
}
enableRtlEnables right-to-left layout behavior.
enableRtl: true
enableAnimationControls chart animation.
enableAnimation: true
legendSettingsConfigures legend behavior and appearance.
legendSettings: {
visible: true,
position: 'Right',
alignment: 'Center'
}
tooltipConfigures tooltip behavior and appearance.
tooltip: {
enable: true,
format: '${point.x}: ${point.y}'
}
selectionModeConfigures persistent point selection when the required selection module is available.
selectionMode: 'Point'
highlightModeConfigures temporary point highlighting when the required highlight module is available.
highlightMode: 'Point'
accessibilityConfigures description, role, focusability, and tab order.
accessibility: {
accessibilityDescription:
'Browser market share shown as a 3D pie chart.',
accessibilityRole: 'region',
focusable: true,
tabIndex: 0
}
dataSourceSupplies data objects.
dataSource: data
xNameMaps the category field.
xName: 'browser'
yNameMaps the numeric field.
yName: 'share'
nameSets the series name.
name: 'Market Share'
radiusControls the outer series size or maps a radius field.
Fixed radius:
radius: '80%'
Mapped radius:
radius: 'segmentRadius'
innerRadiusControls the center opening.
innerRadius: '40%'
dataLabelConfigures data labels.
dataLabel: {
visible: true,
position: 'Outside'
}
palettesSupplies an ordered color collection.
palettes: [
'#0066cc',
'#d83b01',
'#107c10',
'#5c2d91'
]
pointColorMappingMaps a color field from the data source.
pointColorMapping: 'color'
opacityControls series transparency.
opacity: 0.9
explodeEnables segment explosion.
explode: true
explodeIndexIdentifies the initially exploded point.
explodeIndex: 0
explodeOffsetControls the exploded segment distance.
explodeOffset: '20%'
emptyPointSettingsControls handling of null and undefined values.
emptyPointSettings: {
mode: 'Gap',
fill: '#767676',
border: {
width: 1,
color: '#333333'
}
}
animationConfigures series animation.
animation: {
enable: true,
duration: 1000,
delay: 0
}
visibleEnables labels.
visible: true
positionPlaces labels inside or outside.
position: 'Outside'
nameMaps a data-source text field.
name: 'labelText'
formatFormats the resolved label value.
format: 'n2'
Static-text example:
format: '{value}%'
templateCreates custom HTML content.
template:
'<div class="data-label-template">' +
'<strong>${point.x}</strong><br>' +
'<span>${point.y}</span>' +
'</div>'
fillSets the label background.
fill: '#ffffff'
borderSets the label border.
border: {
width: 1,
color: '#cccccc'
}
fontSets label text properties.
font: {
fontFamily: 'Segoe UI',
fontWeight: '600',
size: '12px',
color: '#333333'
}
enableRotationEnables label rotation.
enableRotation: true
angleSets the label rotation angle.
angle: 45
connectorStyleConfigures outside-label connectors.
connectorStyle: {
length: '40px',
width: 2,
color: '#666666',
dashArray: '5,3'
}
enableEnables tooltips.
enable: true
headerSets tooltip heading text.
header: 'Market Share'
formatDefines simple tooltip content.
format: '${point.x}: <b>${point.y}</b>'
templateDefines custom tooltip HTML.
template:
'<div class="chart-tooltip">' +
'<strong>${point.x}</strong><br>' +
'<span>${point.y}</span>' +
'</div>'
fillSets tooltip background color.
fill: '#252423'
opacitySets tooltip transparency.
opacity: 0.9
borderSets tooltip border.
border: {
width: 1,
color: '#ffffff'
}
textStyleSets tooltip text appearance.
textStyle: {
fontFamily: 'Segoe UI',
size: '12px',
color: '#ffffff'
}
enableAnimationControls tooltip movement animation.
enableAnimation: true
fadeOutDurationControls fade-out duration.
fadeOutDuration: 1000
Use events only when standard properties cannot provide the required behavior.
Common CircularChart3D events include:
load
loaded
pointRender
seriesRender
textRender
legendRender
legendClick
tooltipRender
pointClick
pointMove
beforeResize
resized
beforePrint
beforeExport
afterExport
selectionComplete
loadUse for pre-render initialization.
loadedUse after chart rendering completes.
pointRenderUse to customize individual point rendering.
seriesRenderUse to customize series rendering.
textRenderUse to customize data-label text.
legendRenderUse to customize legend items before rendering.
legendClickUse to respond to legend interaction.
tooltipRenderUse to change tooltip content dynamically.
pointClickUse to respond to point selection through pointer interaction.
pointMoveUse to respond to pointer movement over points.
Prefer:
Static API property -> Static behavior
Event -> Runtime conditional behavior
Example:
Use dataLabel.font for one label style applied to all points.
Use textRender when label text changes conditionally by point.
<div class="chart-actions">
<button id="pieButton" type="button">
Show Pie
</button>
<button id="doughnutButton" type="button">
Show Doughnut
</button>
<button id="updateButton" type="button">
Update Data
</button>
</div>
<div id="chart"></div>
import {
CircularChart3D,
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D,
CircularChart3DTextRenderEventArgs
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
);
interface BrowserData {
browser: string;
share: number;
labelText: string;
color: string;
}
const initialData: BrowserData[] = [
{
browser: 'Chrome',
share: 62.92,
labelText: 'Chrome',
color: '#0066cc'
},
{
browser: 'Firefox',
share: 15.23,
labelText: 'Firefox',
color: '#d83b01'
},
{
browser: 'Safari',
share: 19.97,
labelText: 'Safari',
color: '#107c10'
},
{
browser: 'Others',
share: 2.88,
labelText: 'Others',
color: '#5c2d91'
}
];
const updatedData: BrowserData[] = [
{
browser: 'Chrome',
share: 60,
labelText: 'Chrome',
color: '#0066cc'
},
{
browser: 'Firefox',
share: 13,
labelText: 'Firefox',
color: '#d83b01'
},
{
browser: 'Safari',
share: 23,
labelText: 'Safari',
color: '#107c10'
},
{
browser: 'Others',
share: 4,
labelText: 'Others',
color: '#5c2d91'
}
];
let activeData: BrowserData[] = initialData;
const calculateTotal = (): number => {
return activeData.reduce(
(
sum: number,
item: BrowserData
): number => sum + item.share,
0
);
};
const chart: CircularChart3D = new CircularChart3D({
width: '100%',
height: '550px',
title: 'Browser Market Share',
subTitle: 'Interactive 3D Circular Chart',
theme: 'Material',
background: '#ffffff',
tilt: -45,
rotation: 0,
depth: 50,
enableRotation: true,
enableAnimation: true,
accessibility: {
accessibilityDescription:
'Interactive browser market share shown as a ' +
'3D circular chart.',
accessibilityRole: 'region',
focusable: true,
tabIndex: 0
},
titleStyle: {
fontFamily: 'Segoe UI',
fontWeight: 'Bold',
size: '18px',
color: '#1a1a1a'
},
subTitleStyle: {
fontFamily: 'Segoe UI',
fontWeight: 'Normal',
size: '14px',
color: '#444444'
},
legendSettings: {
visible: true,
position: 'Right',
alignment: 'Center',
description: 'Browser market share categories',
textStyle: {
fontFamily: 'Segoe UI',
size: '12px',
color: '#1a1a1a'
}
},
tooltip: {
enable: true,
header: 'Market Share',
format: '${point.x}: <b>${point.y:n2}%</b>',
fill: '#1a1a1a',
opacity: 0.9,
textStyle: {
fontFamily: 'Segoe UI',
size: '12px',
color: '#ffffff'
}
},
textRender: (
args: CircularChart3DTextRenderEventArgs
): void => {
if (
args.point &&
args.point.y !== undefined
) {
const total: number = calculateTotal();
const value: number = Number(args.point.y);
const percentage: number =
total === 0
? 0
: value / total * 100;
args.text =
`${args.point.x}: ` +
`${percentage.toFixed(1)}%`;
}
},
series: [{
name: 'Market Share',
dataSource: activeData,
xName: 'browser',
yName: 'share',
pointColorMapping: 'color',
radius: '75%',
innerRadius: '0%',
accessibility: {
accessibilityDescription:
'Browser market share data series.',
accessibilityDescriptionFormat:
'${point.x}: ${point.y} percent',
accessibilityRole: 'region',
focusable: true,
tabIndex: 0
},
animation: {
enable: true,
duration: 1000,
delay: 0
},
emptyPointSettings: {
mode: 'Gap',
fill: '#767676',
border: {
width: 1,
color: '#333333'
}
},
dataLabel: {
visible: true,
position: 'Outside',
name: 'labelText',
fill: '#ffffff',
border: {
width: 1,
color: '#cccccc'
},
font: {
fontFamily: 'Segoe UI',
fontWeight: '600',
size: '12px',
color: '#1a1a1a'
},
connectorStyle: {
length: '40px',
width: 1,
color: '#666666'
}
}
}]
});
chart.appendTo('#chart');
document
.getElementById('pieButton')
?.addEventListener('click', (): void => {
chart[{
: 'Market Share',
Source: activeData,
Name: 'browser',
Name: 'share',
ColorMapping: 'color',
: '75%',
Radius: '0%',
: {
Description:
Browser market share data series.',
DescriptionFormat:
point.x}: ${point.y} percent',
Role: 'region',
able: true,
Index: 0
: {
: true,
: 1000,
: 0
PointSettings: {
: 'Gap',
: '#767676',
: {
: 1,
: '#333333'
Label: {
: true,
: 'Outside',
: 'labelText',
: '#ffffff',
: {
: 1,
: '#cccccc'
: {
Family: 'Segoe UI',
Weight: '600',
: '12px',
: '#1a1a1a'
Style: {
: '40px',
: 1,
: '#666666'
To('#chart')mplete JavaScript Feature Example
### Required HTML
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Interactive 3D Circular Chart</title>
<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>
</head>
<body>
<div class="chart-actions">
<button id="pieButton" type="button">
Show Pie
</button>
<button id="doughnutButton" type="button">
Show Doughnut
</button>
<button id="updateButton" type="button">
Update Data
</button>
</div>
<div id="chart"></div>
<script src="index.js"></script>
</body>
</html>
var initialData = [
{
browser: 'Chrome',
share: 62.92,
labelText: 'Chrome',
color: '#0066cc'
},
{
browser: 'Firefox',
share: 15.23,
labelText: 'Firefox',
color: '#d83b01'
},
{
browser: 'Safari',
share: 19.97,
labelText: 'Safari',
color: '#107c10'
},
{
browser: 'Others',
share: 2.88,
labelText: 'Others',
color: '#5c2d91'
}
];
var updatedData = [
{
browser: 'Chrome',
share: 60,
labelText: 'Chrome',
color: '#0066cc'
},
{
browser: 'Firefox',
share: 13,
labelText: 'Firefox',
color: '#d83b01'
},
{
browser: 'Safari',
share: 23,
labelText: 'Safari',
color: '#107c10'
},
{
browser: 'Others',
share: 4,
labelText: 'Others',
color: '#5c2d91'
}
];
var activeData = initialData;
function calculateTotal() {
return activeData.reduce(function (sum, item) {
return sum + item.share;
}, 0);
}
var chart = new ej.charts.CircularChart3D({
width: '100%',
height: '550px',
title: 'Browser Market Share',
subTitle: 'Interactive 3D Circular Chart',
theme: 'Material',
background: '#ffffff',
tilt: -45,
rotation: 0,
depth: 50,
enableRotation: true,
enableAnimation: true,
accessibility: {
accessibilityDescription:
'Interactive browser market share shown as a ' +
'3D circular chart.',
accessibilityRole: 'region',
focusable: true,
tabIndex: 0
},
titleStyle: {
fontFamily: 'Segoe UI',
fontWeight: 'Bold',
size: '18px',
color: '#1a1a1a'
},
subTitleStyle: {
fontFamily: 'Segoe UI',
fontWeight: 'Normal',
size: '14px',
color: '#444444'
},
legendSettings: {
visible: true,
position: 'Right',
alignment: 'Center',
description: 'Browser market share categories',
textStyle: {
fontFamily: 'Segoe UI',
size: '12px',
color: '#1a1a1a'
}
},
tooltip: {
enable: true,
header: 'Market Share',
format: '${point.x}: <b>${point.y:n2}%</b>',
fill: '#1a1a1a',
opacity: 0.9,
textStyle: {
fontFamily: 'Segoe UI',
size: '12px',
color: '#ffffff'
}
},
textRender: function (args) {
if (
args.point &&
args.point.y !== undefined
) {
var total = calculateTotal();
var value = Number(args.point.y);
var percentage =
total === 0
? 0
: value / total * 100;
args.text =
args.point.x +
': ' +
percentage.toFixed(1) +
'%';
}
},
series: [{
name: 'Market Share',
dataSource: activeData,
xName: 'browser',
yName: 'share',
pointColorMapping: 'color',
radius: '75%',
innerRadius: '0%',
accessibility: {
accessibilityDescription:
'Browser market share data series.',
accessibilityDescriptionFormat:
'${point.x}: ${point.y} percent',
accessibilityRole: 'region',
focusable: true,
tabIndex: 0
},
animation: {
enable: true,
duration: 1000,
delay: 0
},
emptyPointSettings: {
mode: 'Gap',
fill: '#767676',
border: {
width: 1,
color: '#333333'
}
},
dataLabel: {
visible: true,
position: 'Outside',
name: 'labelText',
fill: '#ffffff',
border: {
width: 1,
color: '#cccccc'
},
font: {
fontFamily: 'Segoe UI',
fontWeight: '600',
size: '12px',
color: '#1a1a1a'
},
connectorStyle: {
length: '40px',
width: 1,
color: '#666666'
}
}
}]
});
chart.appendTo('#chart');
var pieButton =
document.getElementById('pieButton');
var doughnutButton =
document.getElementById('doughnutButton');
var updateButton =
document.getElementById('updateButton');
if (pieButton) {
pieButton.addEventListener('click', function () {
chart.series[0].innerRadius = '0%';
chart.subTitle = 'Pie View';
chart.refresh();
});
}
if (doughnutButton) {
doughnutButton.addEventListener('click', function () {
chart.series[0].innerRadius = '40%';
chart.subTitle = 'Doughnut View';
chart.refresh();
});
}
if (updateButton) {
updateButton.addEventListener('click', function () {
activeData = updatedData;
chart.series[0].dataSource = activeData;
chart.refresh();
});
}
✅ The correct reference file was selected for the requested feature.
✅ TypeScript imports were validated before code generation.
✅ Every enabled TypeScript feature has a matching injected module.
✅ Every injected module is imported.
✅ PieSeries3D is included for pie and doughnut charts.
✅ CircularChartDataLabel3D is included when data labels are visible.
✅ CircularChartLegend3D is included when the legend is visible.
✅ CircularChartTooltip3D is included when tooltips are enabled.
✅ Export uses the validated CircularChart3D export module when required.
✅ The TypeScript data model matches the data source.
✅ xName matches a category field.
✅ yName matches a numeric field.
✅ The HTML host exists.
✅ The appendTo selector matches the host ID.
✅ The chart is attached through appendTo.
✅ subTitle uses the correct casing.
✅ Pie charts use innerRadius: '0%'.
✅ Doughnut charts use innerRadius greater than '0%'.
✅ Outside data labels have sufficient surrounding space.
✅ Connector lines are used with Outside labels.
✅ Template HTML is executable and not entity encoded.
✅ No rich-text editor markup appears inside code.
✅ Tooltip tokens are validated.
✅ Empty points use Gap, Drop, Zero, or Average.
✅ Accessibility uses the supported accessibility model.
✅ Color is not the only source of category information.
✅ Runtime property changes are followed by refresh when required.
✅ JavaScript files load after the required EJ2 global scripts.
✅ TypeScript and JavaScript examples provide equivalent behavior.
Incorrect:
import {
CircularChart3D,
PieSeries3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(PieSeries3D);
const chart = new CircularChart3D({
legendSettings: {
visible: true
},
tooltip: {
enable: true
},
series: [{
dataSource: data,
xName: 'x',
yName: 'y',
dataLabel: {
visible: true
}
}]
});
Correct:
import {
CircularChart3D,
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartDataLabel3D,
CircularChartLegend3D,
CircularChartTooltip3D
);
Avoid:
const chart = new CircularChart3D({
series: []
}, '#chart');
Preferred:
const chart = new CircularChart3D({
series: []
});
chart.appendTo('#chart');
Incorrect:
subtitle: '2023'
Correct:
subTitle: '2023'
Incorrect executable HTML:
<div id="chart"></div>
Correct:
<div id="chart"></div>
Incorrect:
https://cdn.syncfusion.com/...
https://cdn.syncfusion.com/...
</a>
Correct:
<script src="https://cdn.syncfusion.com/ej2/34.2.2/ej2-charts/dist/global/ej2-charts.min.js"></script>
Incorrect:
A doughnut chart requires a separate DoughnutSeries3D module.
Correct:
PieSeries3D with innerRadius: '0%' -> Pie
PieSeries3D with innerRadius: '40%' -> Doughnut
Incorrect:
const chart = new CircularChart3D({
palette: [
'#0066cc',
'#d83b01'
]
});
Correct:
const chart = new CircularChart3D({
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
palettes: [
'#0066cc',
'#d83b01'
]
}]
});
Incorrect:
emptyPointSettings: {
visible: true,
mode: 'Zero'
}
Correct:
emptyPointSettings: {
mode: 'Zero'
}
Avoid:
ariaLabel: 'Chart description'
Avoid:
accessibility: {
screenReaderMode: true
}
Use:
accessibility: {
accessibilityDescription:
'Chart description',
accessibilityRole: 'region',
focusable: true,
tabIndex: 0
}
Incorrect chart-level pattern:
animationDuration: 1000
Correct series-level pattern:
series: [{
dataSource: data,
xName: 'category',
yName: 'value',
animation: {
enable: true,
duration: 1000,
delay: 0
}
}]
Incorrect:
const data = [
{
browser: 'Chrome',
share: 62.92
}
];
series: [{
dataSource: data,
xName: 'x',
yName: 'y'
}]
Correct:
series: [{
dataSource: data,
xName: 'browser',
yName: 'share'
}]
Avoid isolated configuration fragments when the reader needs runnable code.
Incomplete:
tooltip: {
enable: true
}
Support-ready example:
import {
CircularChart3D,
PieSeries3D,
CircularChartTooltip3D
} from '@syncfusion/ej2-charts';
CircularChart3D.Inject(
PieSeries3D,
CircularChartTooltip3D
);
const chart: CircularChart3D = new CircularChart3D({
tooltip: {
enable: true
},
series: [{
dataSource: data,
xName: 'category',
yName: 'value'
}]
});
chart.appendTo('#chart');
Do not rely only on segment colors.
Add at least one of the following:
Data labels
Legend
Tooltip
Text summary
Accessible data table
Selection or highlight pattern
Do not claim that all points support every keyboard command without runtime validation.
Do not assume unsupported selection modes.
Validate:
Installed EJ2 version
Injected interaction module
Configured mode
Rendered element focusability
Browser behavior
Screen-reader behavior
Avoid enabling features only because they are available.
Choose features based on the user scenario:
Simple summary:
Pie + title + legend
Exact interactive values:
Pie + tooltip
Small segments:
Outside labels + connectors
Open-center presentation:
Doughnut
Dynamic application:
Data updates + refresh
Accessible critical data:
Chart + description + data
references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/data-labels.md (opens in a new tab)references/empty-points-and-accessibility.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/legends-tooltips-and-titles.md (opens in a new tab)references/pie-and-doughnut-charts.md (opens in a new tab)references/styling-customization-and-export.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).