/syncfusion-javascript:syncfusion-javascript-bullet-chartfrom Syncfusion JavaScript UI Controls
Create interactive bullet charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build bullet charts, visualize performance metrics, create comparative analyses, configure ranges/bars, customize appearance, add interactivity, or implement performance dashboards. Includes range configuration, bar customization, axis control, data binding, animations, and export functionality. 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 EJ2 Bullet Chart is a specialized visualization component for comparing actual values against target values within a quantitative scale. Qualitative ranges can provide performance context such as below expectations, approaching target, and target achieved.
The Bullet Chart supports:
This skill covers both TypeScript and JavaScript implementations.
TypeScript implementations use:
@syncfusion/ej2-charts.BulletChart.Inject(...).JavaScript implementations use:
ej.charts namespace.ej.charts.BulletChart.Inject(...).The configuration model is generally equivalent between TypeScript and JavaScript. Package loading, imports, typing, module injection, and event-listener syntax differ between platforms.
Use this skill when you need to:
Use BulletChart when the visualization must compare an actual value against one or more targets within qualitative ranges.
Use a regular Cartesian Chart instead when the requirement involves:
Use StockChart when the application requires a stock-focused financial interface with built-in range selection and period controls.
Read only the reference files relevant to the requested task.
📄 Read: references/getting-started.md for:
📄 Read: references/value-bar-and-comparative-bar.md for:
Rect and Dot actual-bar shapes.📄 Read: references/ranges-and-qualitative-scale.md for:
📄 Read: references/axis-customization.md for:
📄 Read: references/data-binding-and-labels.md for:
📄 Read: references/title-tooltip-and-interactivity.md for:
📄 Read: references/customization-dimensions-and-export.md for:
📄 Read: references/accessibility.md for:
Import:
import {
BulletChart
} from '@syncfusion/ej2-charts';
Create the instance:
const bulletChart: BulletChart =
new BulletChart({
dataSource: chartData,
valueField: 'value',
targetField: 'target'
});
bulletChart.appendTo(
'#bullet-chart'
);
A basic Bullet Chart does not require module injection.
Inject BulletTooltip when tooltips are enabled:
import {
BulletChart,
BulletTooltip
} from '@syncfusion/ej2-charts';
BulletChart.Inject(
BulletTooltip
);
Inject BulletChartLegend when the range legend is enabled:
import {
BulletChart,
BulletChartLegend
} from '@syncfusion/ej2-charts';
BulletChart.Inject(
BulletChartLegend
);
Use:
BulletChart.Inject(...)
Do not use:
Chart.Inject(...)
Do not import an unverified module such as:
BulletLegend
Use:
BulletChartLegend
Configure:
dataSource
valueField
targetField
categoryField
Example:
interface PerformanceData {
actual: number;
goal: number;
metric: string;
}
const chartData: PerformanceData[] = [
{
actual: 55,
goal: 75,
metric: 'Sales'
}
];
const bulletChart: BulletChart =
new BulletChart({
dataSource: chartData,
valueField: 'actual',
targetField: 'goal',
categoryField: 'metric'
});
bulletChart.appendTo(
'#bullet-chart'
);
Ensure that actual and target values are finite numbers.
minimum: 0,
maximum: 100,
interval: 20
Ensure that:
minimum is less than maximum.interval is greater than zero.Constructor target:
const bulletChart: BulletChart =
new BulletChart(
{
dataSource: chartData,
valueField: 'value',
targetField: 'target'
},
'#bullet-chart'
);
appendTo pattern:
const bulletChart: BulletChart =
new BulletChart({
dataSource: chartData,
valueField: 'value',
targetField: 'target'
});
bulletChart.appendTo(
'#bullet-chart'
);
Do not attach the same instance twice.
When permanently removing the Bullet Chart:
bulletChart.destroy().Install the package:
npm install @syncfusion/ej2-charts
Add the host:
<div id="bullet-chart"></div>
Add a stable size:
#bullet-chart {
width: 100%;
min-height: 400px;
}
Create the Bullet Chart:
import {
BulletChart,
BulletTooltip
} from '@syncfusion/ej2-charts';
BulletChart.Inject(
BulletTooltip
);
interface PerformanceData {
value: number;
target: number;
category: string;
}
const chartData: PerformanceData[] = [
{
value: 55,
target: 75,
category: 'Sales Performance'
}
];
const bulletChart: BulletChart =
new BulletChart({
title: 'Quarter 1 Performance',
subtitle:
'Actual sales compared with target',
dataSource: chartData,
valueField: 'value',
targetField: 'target',
categoryField: 'category',
minimum: 0,
maximum: 100,
interval: 20,
labelFormat: '{value}%',
orientation: 'Horizontal',
width: '100%',
height: '400px',
valueFill: '#0F6CBD',
targetColor: '#242424',
targetWidth: 6,
ranges: [
{
end: 50,
color: '#D13438',
opacity: 0.12,
name: 'Below expectations'
},
{
end: 75,
color: '#C19C00',
opacity: 0.12,
name: 'Approaching target'
},
{
end: 100,
color: '#107C10',
opacity: 0.12,
name: 'Target achieved'
}
],
tooltip: {
enable: true,
template:
'<div class="bullet-tooltip">' +
'<strong>Actual:</strong> ${value}<br>' +
'<strong>Target:</strong> ${target}' +
'</div>'
},
dataLabel: {
enable: true,
labelStyle: {
color: '#242424',
size: '13px',
fontWeight: '600'
}
},
animation: {
enable: false
}
});
bulletChart.appendTo(
'#bullet-chart'
);
window.addEventListener(
'beforeunload',
(): void => {
bulletChart.destroy();
}
);
Module purpose:
BulletChart creates the Bullet Chart component.BulletTooltip enables actual and target 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>
Bullet Chart
</title>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
<style>
#bullet-chart {
width: 100%;
min-height: 400px;
}
.bullet-tooltip {
min-width: 130px;
padding: 8px 10px;
}
</style>
</head>
<body>
<div id="bullet-chart"></div>
<script>
ej.charts.BulletChart.Inject(
ej.charts.BulletTooltip
);
var chartData = [
{
value: 55,
target: 75,
category:
'Sales Performance'
}
];
var bulletChart =
new ej.charts.BulletChart({
title:
'Quarter 1 Performance',
subtitle:
'Actual sales compared with target',
dataSource:
chartData,
valueField:
'value',
targetField:
'target',
categoryField:
'category',
minimum:
0,
maximum:
100,
interval:
20,
labelFormat:
'{value}%',
orientation:
'Horizontal',
width:
'100%',
height:
'400px',
valueFill:
'#0F6CBD',
targetColor:
'#242424',
targetWidth:
6,
ranges: [
{
end: 50,
color: '#D13438',
opacity: 0.12,
name:
'Below expectations'
},
{
end: 75,
color: '#C19C00',
opacity: 0.12,
name:
'Approaching target'
},
{
end: 100,
color: '#107C10',
opacity: 0.12,
name:
'Target achieved'
}
],
tooltip: {
enable: true,
template:
'<div class="bullet-tooltip">' +
'<strong>Actual:</strong> ${value}<br>' +
'<strong>Target:</strong> ${target}' +
'</div>'
},
dataLabel: {
enable: true,
labelStyle: {
color: '#242424',
size: '13px',
fontWeight: '600'
}
},
animation: {
enable: false
}
});
bulletChart.appendTo(
'#bullet-chart'
);
window.addEventListener(
'beforeunload',
function () {
bulletChart.destroy();
}
);
</script>
</body>
</html>
When individual package scripts are required, load them in dependency order and use the same version.
<!-- Include CDN scripts -->
<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 combine the consolidated EJ2 script with individual package scripts.
Display several related measures with one shared scale.
interface PerformanceData {
value: number;
target: number;
category: string;
}
const chartData: PerformanceData[] = [
{
value: 55,
target: 75,
category: 'Revenue'
},
{
value: 82,
target: 90,
category: 'Profit'
},
{
value: 68,
target: 80,
category: 'Growth'
}
];
const bulletChart: BulletChart =
new BulletChart({
dataSource: chartData,
valueField: 'value',
targetField: 'target',
categoryField: 'category',
orientation: 'Horizontal',
minimum: 0,
maximum: 100,
interval: 20,
width: '100%',
height: '400px'
});
bulletChart.appendTo(
'#bullet-chart'
);
Every measure in one Bullet Chart should use the same unit and scale interpretation.
ranges: [
{
end: 25,
color: '#D13438',
opacity: 0.14,
name: 'Poor'
},
{
end: 50,
color: '#C85D00',
opacity: 0.14,
name: 'Satisfactory'
},
{
end: 75,
color: '#C19C00',
opacity: 0.14,
name: 'Good'
},
{
end: 100,
color: '#107C10',
opacity: 0.14,
name: 'Excellent'
}
]
Range endings must be ordered.
Do not communicate range meaning through color alone. Add names, a legend, or visible explanatory text.
const bulletChart: BulletChart =
new BulletChart({
dataSource: chartData,
valueField: 'value',
targetField: 'target',
categoryField: 'category',
minimum: 0,
maximum: 100,
interval: 20,
labelFormat: '{value}%',
tickPosition: 'Outside',
labelPosition: 'Outside',
majorTickLines: {
height: 14,
width: 2,
color: '#242424'
},
minorTickLines: {
height: 7,
width: 1,
color: '#808080'
},
minorTicksPerInterval: 4,
labelStyle: {
size: '13px',
color: '#242424'
},
categoryLabelStyle: {
size: '14px',
color: '#242424',
fontWeight: '600'
}
});
bulletChart.appendTo(
'#bullet-chart'
);
Use height for tick length, not size.
interface PerformanceData {
value: number;
targets: number[];
category: string;
}
const chartData: PerformanceData[] = [
{
value: 72,
targets: [
65,
85
],
category: 'Sales'
}
];
const bulletChart: BulletChart =
new BulletChart({
dataSource: chartData,
valueField: 'value',
targetField: 'targets',
categoryField: 'category',
targetTypes: [
'Circle',
'Rect'
],
targetColor: '#242424',
targetWidth: 6,
minimum: 0,
maximum: 100,
interval: 20
});
bulletChart.appendTo(
'#bullet-chart'
);
Explain the meaning of every target marker in visible text.
interface PerformanceData {
value: number;
target: number;
category: string;
color: string;
}
const chartData: PerformanceData[] = [
{
value: 92,
target: 90,
category: 'Team A',
color: '#005A9C'
},
{
value: 78,
target: 90,
category: 'Team B',
color: '#7A5500'
},
{
value: 58,
target: 90,
category: 'Team C',
color: '#A4262C'
}
];
const bulletChart: BulletChart =
new BulletChart({
dataSource: chartData,
valueField: 'value',
targetField: 'target',
categoryField: 'category',
valueFill: 'color',
minimum: 0,
maximum: 100,
interval: 20
});
bulletChart.appendTo(
'#bullet-chart'
);
Do not rely on an unverified pointRender event.
const updatedData = [
{
value: 72,
target: 85,
category:
'Quarter 2 Performance'
}
];
bulletChart.dataSource =
updatedData;
bulletChart.title =
'Quarter 2 Performance';
bulletChart.refresh();
Apply all related changes before calling refresh().
const updateInterval: number =
window.setInterval(
(): void => {
const nextValue: number =
Math.round(
Math.random() *
1000
) / 10;
bulletChart.dataSource = [
{
value: nextValue,
target: 75,
category:
'Live Performance'
}
];
bulletChart.refresh();
},
5000
);
window.addEventListener(
'beforeunload',
(): void => {
window.clearInterval(
updateInterval
);
bulletChart.destroy();
}
);
Disable animation for frequent updates.
const bulletChart: BulletChart =
new BulletChart({
title: 'أداء المبيعات',
dataSource: [
{
value: 85,
target: 90,
category: 'المبيعات'
}
],
valueField: 'value',
targetField: 'target',
categoryField: 'category',
enableRtl: true,
minimum: 0,
maximum: 100,
interval: 20
});
bulletChart.appendTo(
'#bullet-chart'
);
Also configure the HTML language and direction:
<section lang="ar" dir="rtl">
<div id="bullet-chart"></div>
</section>
dataSource: Defines the bound data collection.valueField: Maps the actual or feature-measure value.targetField: Maps one or more target values.categoryField: Maps category labels.query: Defines a query when a compatible data source is used.minimum: Defines the scale beginning.maximum: Defines the scale ending.interval: Defines the major interval.labelFormat: Formats numeric labels.enableGroupSeparator: Enables grouped number separators.orientation: Sets Horizontal or Vertical.opposedPosition: Moves the scale axis to the opposite side.tickPosition: Places ticks Inside or Outside.labelPosition: Places numeric labels Inside or Outside.majorTickLines.height: Defines major-tick length.majorTickLines.width: Defines major-tick thickness.majorTickLines.color: Defines major-tick color.majorTickLines.useRangeColor: Applies corresponding range colors.minorTickLines.height: Defines minor-tick length.minorTickLines.width: Defines minor-tick thickness.minorTickLines.color: Defines minor-tick color.minorTickLines.useRangeColor: Applies corresponding range colors.minorTicksPerInterval: Defines minor-tick count.type: Defines Rect or Dot.valueFill: Defines or maps the actual-bar color.valueHeight: Defines actual-bar thickness.valueBorder: Defines actual-bar border color and width.targetTypes: Defines target shapes such as Rect, Cross, or Circle.targetColor: Defines or maps target-marker color.targetWidth: Defines target-marker width.ranges: Defines qualitative performance zones.ranges[].end: Defines the range ending.ranges[].color: Defines the range color.ranges[].opacity: Defines range transparency.ranges[].name: Defines the range legend name.ranges[].shape: Defines the legend shape.ranges[].legendImageUrl: Defines an image legend icon when the shape is Image.labelStyle: Styles numeric scale labels.categoryLabelStyle: Styles category labels.dataLabel.enable: Shows actual-value labels.dataLabel.labelStyle: Styles actual-value labels.title: Defines the primary title.subtitle: Defines the subtitle.titlePosition: Positions the title and subtitle.titleStyle: Styles the title.subtitleStyle: Styles the subtitle.tooltip.enable: Enables the tooltip.tooltip.template: Defines tooltip HTML.tooltip.fill: Defines tooltip background color.tooltip.border: Defines tooltip border.tooltip.textStyle: Styles tooltip text.width: Defines component width.height: Defines component height.theme: Selects a built-in theme.enableRtl: Enables RTL rendering.border: Defines the Bullet Chart border.margin: Defines outer margins.animation: Configures feature-bar animation.tabIndex: Places the Bullet Chart in the keyboard sequence.legendSettings: Configures the range legend.beforePrint: Runs before printing.print(): Prints the Bullet Chart or selected elements.Chart.Inject(...); use BulletChart.Inject(...).BulletTooltip only when a tooltip is enabled.BulletChartLegend when the range legend is enabled.BulletLegend.ej2-svg-base when individual CDN scripts are used.Horizontal as the default orientation.Vertical as the default.valueHeight, not barHeight or valueBarSize.valueBorder, not valueBorderColor or valueBorderWidth.targetTypes, not targetType.targetWidth, not targetBarSize or targetLineWidth.Rect, Cross, or Circle for target-marker shapes.dataLabel.enable, not dataLabel.visible.dataLabel.labelStyle, not a nested font object.position, template, border, or margin.labelFormat to format actual-value labels.labelStyle, not axisLabelStyle.height for tick length, not size.tickPosition for tick placement.labelPosition for numeric-label placement.OnTicks or BetweenTicks.axisLabelRender, lineStyle, rangeStart, or rangeEnd.labelFormat.legendSettings, not legend.palette.valueFill, targetColor, and range colors directly.pointRender event.allowKeyboardInteraction, keyDown, or keyUp.tooltip.format.tooltip.template.ariaLabel, description, or checkAccessibility.PdfExport module.bulletChart.export() method.refresh().bulletChart.destroy() when the component is permanently removed.When generating a Bullet Chart example:
tabIndex: 0 when keyboard focus is required.prefers-reduced-motion.lang, dir, and enableRtl for RTL content.The documented built-in Bullet Chart keyboard interactions include:
TabShift + TabCtrl + PDo not claim built-in point selection, arrow-key navigation, zooming, or panning shortcuts.
When responding to a Bullet Chart request:
Identify the user's platform:
Read the relevant Bullet Chart reference files.
Import BulletChart.
Inject only the feature modules required by the configuration.
Provide complete data and field mappings.
Configure a valid scale.
Include an HTML host and stable dimensions for runnable examples.
Use typed interfaces in TypeScript.
Use the global ej.charts namespace in JavaScript CDN examples.
Use supported Bullet Chart properties rather than regular Cartesian Chart properties.
Use dataLabel.enable and dataLabel.labelStyle for actual-value labels.
Use tooltip.template for Bullet Chart tooltip customization.
Use data-driven valueFill for conditional actual-bar colors.
Provide a persistent text summary for important actual and target values.
Include cleanup for timers, listeners, and Bullet Chart instances.
Avoid unsupported or unverified properties.
Keep examples complete, consistent, and directly runnable.
When both TypeScript and JavaScript are requested, provide separate complete examples.
Use the reference documents for advanced details instead of duplicating unrelated configurations in the main skill.
references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/accessibility.md (opens in a new tab)references/axis-customization.md (opens in a new tab)references/customization-dimensions-and-export.md (opens in a new tab)references/data-binding-and-labels.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/ranges-and-qualitative-scale.md (opens in a new tab)references/title-tooltip-and-interactivity.md (opens in a new tab)references/value-bar-and-comparative-bar.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