/syncfusion-javascript:syncfusion-javascript-circular-gaugefrom Syncfusion JavaScript UI Controls
Guide to implementing Syncfusion Circular Gauge in TypeScript and JavaScript. Immediately use this skill when user needs to visualize numeric values on a circular scale, configure axes and pointers, add ranges and annotations, customize gauge appearance, implement animations, handle user interactions with tooltips and legends, export gauges to images, or optimize performance. Works with TypeScript (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 Circular Gauge visualizes numeric values on a circular scale. It is suitable for dashboards, monitoring systems, KPI displays, progress indicators, speedometers, temperature monitors, and other measurement-oriented applications.
This skill covers complete implementations for:
The Circular Gauge package provides axes, ranges, ticks, labels, pointers, annotations, legends, tooltips, drag interaction, globalization, accessibility, export, and print support.
Use TypeScript when the application uses:
@syncfusion/ej2-circulargauge npm package.Install the package:
npm install @syncfusion/ej2-circulargauge
The package uses dependencies such as @syncfusion/ej2-base, @syncfusion/ej2-svg-base, and @syncfusion/ej2-pdf-export. Compatible transitive dependency versions are installed through the package manager. Keep Syncfusion package versions consistent to avoid dependency conflicts.
Use global JavaScript when the application uses:
ej namespace.The global Circular Gauge constructor is:
ej.circulargauge.CircularGauge
The JavaScript examples use ES5-compatible syntax where practical:
var instead of const or let
Traditional functions instead of arrow functions
No optional chaining
No object spread
No JavaScript module imports
Use TypeScript or modern JavaScript when the application build process transpiles newer syntax.
Use this skill when the task requires:
A runnable TypeScript example should include:
Imports
Feature-module injection
Gauge configuration
Gauge host element
appendTo call
Required CSS when applicable
A runnable JavaScript example should include:
Versioned script references
Gauge host element
Gauge configuration
appendTo call
Required CSS when applicable
Create the gauge and then call appendTo.
Preferred TypeScript:
const gauge: CircularGauge =
new CircularGauge({
axes: [{
pointers: [{
value: 65
}]
}]
});
gauge.appendTo('#gauge');
Preferred JavaScript:
var gauge =
new ej.circulargauge.CircularGauge({
axes: [{
pointers: [{
value: 65
}]
}]
});
gauge.appendTo('#gauge');
Required HTML:
<div id="gauge"></div>
Required attachment:
gauge.appendTo('#gauge');
The host ID and selector must match exactly.
Feature-to-module mapping:
Annotations -> Annotations
Tooltips -> GaugeTooltip
Legend -> Legend
Gradients -> Gradient
Image export -> ImageExport
PDF export -> PdfExport
Print -> Print
Example:
import {
CircularGauge,
Annotations,
GaugeTooltip,
Legend,
Gradient,
ImageExport,
PdfExport,
Print
} from '@syncfusion/ej2-circulargauge';
CircularGauge.Inject(
Annotations,
GaugeTooltip,
Legend,
Gradient,
ImageExport,
PdfExport,
Print
);
Do not inject unused feature modules.
Every injected module must be imported.
Incorrect:
import {
CircularGauge
} from '@syncfusion/ej2-circulargauge';
CircularGauge.Inject(
Annotations
);
Correct:
import {
CircularGauge,
Annotations
} from '@syncfusion/ej2-circulargauge';
CircularGauge.Inject(
Annotations
);
For this axis:
minimum: 0,
maximum: 100
use pointer values such as:
value: 65
Validate or clamp external values:
const safeValue: number =
Math.min(
100,
Math.max(0, requestedValue)
);
Update a pointer with:
gauge.setPointerValue(
axisIndex,
pointerIndex,
value
);
Update an annotation with:
gauge.setAnnotationValue(
axisIndex,
annotationIndex,
content
);
Avoid rebuilding the entire gauge for a simple value update.
Needle tail:
needleTail: {
length: '20%',
color: '#0066cc'
}
Cap border:
cap: {
radius: 8,
color: '#0066cc',
border: {
width: 2,
color: '#333333'
}
}
Gauge border:
border: {
width: 1,
color: '#dddddd'
}
Tooltip border:
tooltip: {
border: {
width: 1,
color: '#ffffff'
}
}
Gauge-level pointer dragging:
enablePointerDrag: true
Gauge-level range dragging:
enableRangeDrag: true
Use the drag lifecycle:
dragStart
dragMove
dragEnd
Do not use:
allowDragging: true
Executable HTML must use actual tags:
<div id="gauge"></div>
Do not use:
<div id="gauge"></div>
Do not place rich-text editor markup inside code:
<a>
<strong>
<br>
data-lexical-text
Editor-generated class names
📄 Read: references/getting-started.md
Use this reference for:
📄 Read: references/axes-configuration.md
Use this reference for:
📄 Read: references/pointers-configuration.md
Use this reference for:
📄 Read: references/annotations.md
Use this reference for:
📄 Read: references/styling-appearance.md
Use this reference for:
📄 Read: references/events-interactions.md
Use this reference for:
📄 Read: references/export-print.md
Use this reference for:
📄 Read: references/accessibility-advanced.md
Use this reference for:
<div id="gauge"></div>
import {
CircularGauge,
Annotations
} from '@syncfusion/ej2-circulargauge';
CircularGauge.Inject(
Annotations
);
const gauge: CircularGauge =
new CircularGauge({
width: '100%',
height: '450px',
title: 'Speed Monitor',
axes: [{
minimum: 0,
maximum: 120,
startAngle: 230,
endAngle: 130,
radius: '88%',
lineStyle: {
width: 8,
color: '#e0e0e0'
},
majorTicks: {
interval: 20,
width: 2,
height: 10,
position: 'Inside',
color: '#333333'
},
minorTicks: {
interval: 5,
width: 1,
height: 5,
position: 'Inside',
color: '#777777'
},
labelStyle: {
position: 'Inside',
format: '{value}',
font: {
fontFamily: 'Segoe UI',
size: '12px',
color: '#333333'
}
},
ranges: [
{
start: 0,
end: 40,
color: '#107c10',
radius: '95%',
startWidth: 10,
endWidth: 10
},
{
start: 40,
end: 80,
color: '#ffb900',
radius: '95%',
startWidth: 10,
endWidth: 10
},
{
start: 80,
end: 120,
color: '#d13438',
radius: '95%',
startWidth: 10,
endWidth: 10
}
],
pointers: [{
value: 65,
type: 'Needle',
radius: '75%',
pointerWidth: 8,
color: '#0066cc',
cap: {
radius: 8,
color: '#0066cc',
border: {
width: 2,
color: '#333333'
}
},
needleTail: {
length: '20%',
color: '#0066cc'
},
animation: {
enable: true,
duration: 800
}
}],
annotations: [{
angle: 180,
radius: '30%',
zIndex: '1',
content:
'<div style="' +
'font-family:Segoe UI;' +
'font-size:24px;' +
'font-weight:600;' +
'color:#333333;' +
'">' +
'65 km/h' +
'</div>',
description:
'Current speed is 65 kilometers per hour'
}]
}]
});
gauge.appendTo('#gauge');
Use either:
The consolidated EJ2 bundle
or:
The individual Circular Gauge package scripts
Do not combine both approaches.
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Syncfusion Circular Gauge</title>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
</head>
<body>
<div id="gauge"></div>
<script>
var gauge =
new ej.circulargauge.CircularGauge({
width: '100%',
height: '450px',
title: 'Speed Monitor',
axes: [{
minimum: 0,
maximum: 120,
startAngle: 230,
endAngle: 130,
radius: '88%',
lineStyle: {
width: 8,
color: '#e0e0e0'
},
majorTicks: {
interval: 20,
width: 2,
height: 10,
position: 'Inside',
color: '#333333'
},
minorTicks: {
interval: 5,
width: 1,
height: 5,
position: 'Inside',
color: '#777777'
},
labelStyle: {
position: 'Inside',
format: '{value}',
font: {
fontFamily: 'Segoe UI',
size: '12px',
color: '#333333'
}
},
ranges: [
{
start: 0,
end: 40,
color: '#107c10',
radius: '95%',
startWidth: 10,
endWidth: 10
},
{
start: 40,
end: 80,
color: '#ffb900',
radius: '95%',
startWidth: 10,
endWidth: 10
},
{
start: 80,
end: 120,
color: '#d13438',
radius: '95%',
startWidth: 10,
endWidth: 10
}
],
pointers: [{
value: 65,
type: 'Needle',
radius: '75%',
pointerWidth: 8,
color: '#0066cc',
cap: {
radius: 8,
color: '#0066cc',
border: {
width: 2,
color: '#333333'
}
},
needleTail: {
length: '20%',
color: '#0066cc'
},
animation: {
enable: true,
duration: 800
}
}],
annotations: [{
angle: 180,
radius: '30%',
zIndex: '1',
content:
'<div style="' +
'font-family:Segoe UI;' +
'font-size:24px;' +
'font-weight:600;' +
'color:#333333;' +
'">' +
'65 km/h' +
'</div>',
description:
'Current speed is 65 ' +
'kilometers per hour'
}]
}]
});
gauge.appendTo('#gauge');
</script>
</body>
</html>
Use:
Recommended for:
Performance indicators
Temperature values
Utilization
Completion percentage
Capacity
Use:
enablePointerDrag: true
Handle the final value through:
dragEnd: (
args: PointerDragEventArgs
): void => {
saveValue(args.currentValue);
}
Also provide keyboard-accessible native controls.
Recommended for:
User input
Settings
Threshold adjustment
Interactive dashboards
Do not rely solely on pointer dragging.
Update the pointer through:
gauge.setPointerValue(
0,
0,
newValue
);
Update related content in the same operation:
gauge.setAnnotationValue(
0,
0,
createAnnotation(newValue)
);
Recommended for:
Sensor data
CPU usage
Memory usage
Network throughput
Vehicle speed
System health
Clear timers or subscriptions when the view is destroyed.
Use different pointer types, radii, and colors.
pointers: [
{
value: 65,
type: 'Needle',
radius: '70%',
color: '#0066cc'
},
{
value: 80,
type: 'RangeBar',
radius: '85%',
pointerWidth: 12,
color: '#107c10'
},
{
value: 90,
type: 'Marker',
markerShape: 'Triangle',
radius: '100%',
color: '#d13438'
}
]
Recommended for:
Actual versus target
Current value and threshold
Several related measurements
Inject:
CircularGauge.Inject(
ImageExport,
PdfExport,
Print
);
Enable:
allowImageExport: true,
allowPdfExport: true,
allowPrint: true
Export:
gauge.export(
'PNG',
'performance-gauge'
);
gauge.export(
'PDF',
'performance-gauge',
'Landscape'
);
Print:
gauge.print();
Include:
Do not claim built-in arrow-key navigation unless it has been explicitly implemented and tested.
axes -> Axis collection.
width -> Gauge width.
height -> Gauge height.
title -> Visible gauge title.
titleStyle -> Title appearance.
description -> Assistive-technology description.
background -> Gauge background.
border -> Gauge border.
centerX -> Horizontal center position.
centerY -> Vertical center position.
theme -> Built-in theme.
locale -> Active locale.
enableRtl -> RTL layout.
enablePointerDrag -> Pointer dragging.
enableRangeDrag -> Range dragging.
animationDuration -> General animation duration.
tooltip -> Tooltip settings.
legendSettings -> Range legend settings.
allowImageExport -> Image-export enablement.
allowPdfExport -> PDF-export enablement.
allowPrint -> Print enablement.
minimum -> Lowest axis value.
maximum -> Highest axis value.
startAngle -> Axis start angle.
endAngle -> Axis end angle.
direction -> ClockWise or AntiClockWise.
radius -> Axis radius.
background -> Axis background.
lineStyle -> Axis-line appearance.
majorTicks -> Major-tick settings.
minorTicks -> Minor-tick settings.
labelStyle -> Axis-label settings.
ranges -> Range collection.
pointers -> Pointer collection.
annotations -> Annotation collection.
value -> Current pointer value.
type -> Needle, RangeBar, or Marker.
radius -> Pointer radius.
pointerWidth -> Needle or RangeBar width.
color -> Pointer color.
border -> Pointer border.
cap -> Needle-cap settings.
needleTail -> Needle-tail settings.
needleStartWidth -> Needle starting width.
needleEndWidth -> Needle ending width.
markerShape -> Marker shape.
markerWidth -> Marker width.
markerHeight -> Marker height.
imageUrl -> Image-marker URL.
roundedCornerRadius -> RangeBar corner radius.
animation -> Pointer animation.
linearGradient -> Linear-gradient settings.
radialGradient -> Radial-gradient settings.
start -> Range start value.
end -> Range end value.
color -> Range color.
radius -> Range radius.
startWidth -> Range starting width.
endWidth -> Range ending width.
position -> Inside, Outside, or Cross.
roundedCornerRadius -> Range corner radius.
legendText -> Range legend text.
border -> Range border.
linearGradient -> Linear-gradient settings.
radialGradient -> Radial-gradient settings.
angle -> Angular position.
radius -> Distance from the axis center.
content -> Text, HTML, function, or element ID.
zIndex -> Stacking order as a string.
autoAngle -> Automatic rotation.
description -> Accessible description.
textStyle -> Plain-text appearance.
enable -> Tooltip visibility.
type -> Pointer, Range, or Annotation.
format -> Pointer-value format.
template -> HTML template.
fill -> Tooltip background.
border -> Tooltip border.
textStyle -> Tooltip text appearance.
showAtMousePosition -> Pointer tooltip mouse positioning.
rangeSettings -> Range-tooltip settings.
annotationSettings -> Annotation-tooltip settings.
enableAnimation -> Tooltip animation.
load
loaded
animationComplete
annotationRender
axisLabelRender
dragStart
dragMove
dragEnd
gaugeMouseMove
gaugeMouseClick
gaugeMouseLeave
legendRender
tooltipRender
beforePrint
beforeExport
afterExport
resized
Use configuration properties for static behavior and events for conditional runtime behavior.
Example:
Use labelStyle.format for one static label format.
Use axisLabelRender for conditional label text.
✅ @syncfusion/ej2-circulargauge is installed for TypeScript.
✅ CircularGauge is imported.
✅ Every enabled TypeScript feature has a matching injected module.
✅ Every injected module is imported.
✅ The global EJ2 script loads before JavaScript application code.
✅ The HTML gauge host exists.
✅ The appendTo selector matches the host ID.
✅ The gauge has measurable width and height.
✅ At least one axis exists.
✅ Axis minimum is less than axis maximum.
✅ Pointer values remain within the corresponding axis range.
✅ Range values remain within the corresponding axis range.
✅ Range start is less than range end.
✅ Needle pointers use needleTail instead of tail.
✅ Cap borders use cap.border.
✅ Gauge borders use the border model.
✅ Tooltip borders use the border model.
✅ Range legends use legendText.
✅ Tooltips use GaugeTooltip in TypeScript.
✅ Annotations use Annotations in TypeScript.
✅ Gradients use Gradient in TypeScript.
✅ Export features include both injection and enablement properties.
✅ Pointer dragging uses enablePointerDrag.
✅ Range dragging uses enableRangeDrag.
✅ Programmatic pointer updates use setPointerValue.
✅ Dynamic annotation updates use setAnnotationValue when available.
✅ High-frequency events avoid expensive operations.
✅ Native controls are available when keyboard value editing is required.
✅ Color is not the only source of status information.
✅ Dynamic values are available in text.
✅ RTL layout and axis direction are configured separately.
✅ Locale data is loaded when required.
✅ Export behavior is tested when HTML annotations are present.
✅ Timers, event listeners, and gauge instances are cleaned up.
✅ Executable code contains no HTML entities or editor-generated markup.
✅ TypeScript and JavaScript examples provide equivalent behavior.
Incorrect:
allowDragging: true
Correct:
enablePointerDrag: true
Incorrect:
import {
Tooltip
} from '@syncfusion/ej2-circulargauge';
Correct:
import {
GaugeTooltip
} from '@syncfusion/ej2-circulargauge';
Incorrect:
tail: {
length: '20%'
}
Correct:
needleTail: {
length: '20%'
}
Incorrect:
cap: {
borderWidth: 2,
borderColor: '#333333'
}
Correct:
cap: {
border: {
width: 2,
color: '#333333'
}
}
Incorrect:
borderWidth: 1,
borderColor: '#dddddd'
Correct:
border: {
width: 1,
color: '#dddddd'
}
Incorrect:
ranges: [{
name: 'Normal'
}]
Correct:
ranges: [{
legendText: 'Normal'
}]
Incorrect:
CircularGauge.Inject(
ImageExport
);
without:
allowImageExport: true
Correct:
CircularGauge.Inject(
ImageExport
);
const gauge: CircularGauge =
new CircularGauge({
allowImageExport: true
});
Avoid treating export arguments as arbitrary pixel dimensions:
gauge.export(
'PNG',
'gauge',
'Landscape',
800,
600
);
Use:
gauge.export(
'PNG',
'gauge'
);
Render the gauge at a validated larger size before raster export, or use SVG for scalable output.
Avoid:
gauge.valueChange = (args) => {
console.log(args.value);
};
Use:
dragMove or dragEnd for pointer dragging.
setPointerValue for programmatic updates.
Application state updates in the same method that changes the gauge.
Do not claim:
Arrow keys change pointer values automatically.
Enter confirms pointer changes.
Every gauge element participates in Tab navigation.
Provide native buttons or inputs when keyboard editing is required.
Incorrect:
annotations: [{
fontFamily: 'Segoe UI',
fontSize: '16px',
fontColor: '#333333'
}]
Correct:
annotations: [{
textStyle: {
fontFamily: 'Segoe UI',
size: '16px',
color: '#333333'
}
}]
Avoid:
zIndex: 1
Use:
zIndex: '1'
Do not load the consolidated EJ2 script together with individual package scripts.
Use either:
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
or:
<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-svg-base/dist/global/ej2-svg-base.min.js"
></script>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/ej2-circulargauge/dist/global/ej2-circulargauge.min.js"></script>
Load ej2-pdf-export before ej2-circulargauge when individual scripts are used with PDF export.
Avoid:
const gauge =
new CircularGauge({
axes: []
}, '#gauge');
Preferred:
const gauge: CircularGauge =
new CircularGauge({
axes: []
});
gauge.appendTo('#gauge');
Incorrect:
<div id="gauge"></div>
Correct:
<div id="gauge"></div>
When removing the view:
window.clearInterval(
intervalId
);
window.removeEventListener(
'resize',
resizeHandler
);
gauge.destroy();
Do not place the following inside executable TypeScript, JavaScript, HTML, CSS, templates, imports, commands, or CDN URLs:
<a>
<strong>
<br>
data-lexical-text
Editor-generated class names
references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/accessibility-advanced.md (opens in a new tab)references/annotations.md (opens in a new tab)references/axes-configuration.md (opens in a new tab)references/events-interactions.md (opens in a new tab)references/export-print.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/pointers-configuration.md (opens in a new tab)references/styling-appearance.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascript67 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).Other plugins' skills for the same job