/syncfusion-javascript:syncfusion-javascript-sparklinefrom Syncfusion JavaScript UI Controls
Create compact, lightweight sparklines in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to visualize small data trends, create sparklines in grids, display line/column/area/pie/win-loss charts, add markers for high/low/start/end/negative points, configure data labels and tooltips, customize appearance, enable interactivity with trackball, or implement accessibility features. 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 EJ2 Sparkline is a lightweight data-visualization component for showing trends, comparisons, proportions, and outcome patterns in a compact area. It is suitable for dashboards, cards, tables, grids, reports, and KPI summaries.
This skill covers:
@syncfusion/ej2-chartsej.charts.SparklineDo not generate Vue, React, Angular, Composition API, directive, provider, or Single File Component examples when this skill is used.
Use TypeScript when the project requires:
Import the component from:
import {
Sparkline
} from '@syncfusion/ej2-charts';
Create and render it:
const sparkline: Sparkline =
new Sparkline(configuration);
sparkline.appendTo('#sparkline');
Basic Sparkline features do not require module injection.
The following features work without optional module injection:
Tooltip and tracker-line features require SparklineTooltip:
import {
Sparkline,
SparklineTooltip
} from '@syncfusion/ej2-charts';
Sparkline.Inject(
SparklineTooltip
);
Do not call an empty injection method:
Sparkline.Inject();
Use JavaScript when the project requires:
Create the component through:
var sparkline =
new ej.charts.Sparkline(
configuration
);
sparkline.appendTo('#sparkline');
When the complete EJ2 global bundle is loaded, explicit TypeScript-style feature injection is generally unnecessary.
Use this skill when the user needs to:
xName and yName.Before generating Sparkline code, validate the following items.
Determine whether the user needs:
Do not substitute a framework-specific wrapper.
Supported values are:
Line
Column
Area
Pie
WinLoss
Configure the type at Sparkline root level:
type: 'Line'
A datasource can be:
Numeric array:
dataSource: [
2,
6,
4,
1,
3
]
Object array:
dataSource: [
{
month: 'Jan',
sales: 35
},
{
month: 'Feb',
sales: 28
}
],
xName: 'month',
yName: 'sales'
Do not provide xName or yName for a plain numeric array.
Use:
valueType: 'Numeric'
for numeric x-values.
Use:
valueType: 'Category'
for string x-values.
Use:
valueType: 'DateTime'
for JavaScript Date values.
Do not use:
valueType: 'Double'
| Feature | TypeScript module |
|---|---|
| Basic rendering | No optional module |
| Sparkline types | No optional module |
| Markers | No optional module |
| Data labels | No optional module |
| Axis configuration | No optional module |
| Range bands | No optional module |
| Appearance | No optional module |
| Tooltip | SparklineTooltip |
| Tracker line | SparklineTooltip |
Use:
markerSettings
for markers.
Use:
dataLabelSettings
for data labels.
Use:
tooltipSettings
for tooltips.
Use:
tooltipSettings: {
trackLineSettings: {
visible: true
}
}
for the tracker line.
Use:
rangeBandSettings: [
{
startRange: 30,
endRange: 40
}
]
for range bands.
Use:
axisSettings: {
lineSettings: {
visible: true
}
}
for the horizontal reference line.
Confirm that:
Read:
references/getting-started.md
Use it for:
Read:
references/sparkline-types.md
Use it for:
Read:
references/appearance-styling.md
Use it for:
Read:
references/markers-and-points.md
Use it for:
Read:
references/data-labels-and-tooltips.md
Use it for:
Read:
references/range-bands.md
Use it for:
Read:
references/axis-customization.md
Use it for:
minXmaxXminYmaxYSparkline does not expose conventional x-axis and y-axis labels, tick labels, label rotation, or an axis-label style model.
Read:
references/user-interaction.md
Use it for:
Read:
references/accessibility-localization.md
Use it for:
Install the EJ2 Charts package:
npm install @syncfusion/ej2-charts
The required transitive dependencies are installed automatically.
Do not require separate installation of ej2-base, ej2-data, or ej2-svg-base unless the package manager reports a specific resolution problem.
Configure the corresponding component theme when required:
theme: 'Material'
<div class="sparkline-wrapper">
<div id="sparkline"></div>
</div>
.sparkline-wrapper {
width: 100%;
max-width: 500px;
}
#sparkline {
width: 100%;
height: 140px;
}
Render only after the host element exists:
const host:
HTMLElement | null =
document.querySelector(
'#sparkline'
);
if (!host) {
throw new Error(
'The Sparkline host element was not found.'
);
}
sparkline.appendTo(host);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>EJ2 TypeScript Sparkline</title>
<style>
.sparkline-wrapper {
width: 100%;
max-width: 400px;
}
#sparkline {
width: 100%;
height: 120px;
}
</style>
</head>
<body>
<div class="sparkline-wrapper">
<div id="sparkline"></div>
</div>
<script scr="index.js"></script>
</body>
</html>
import {
Sparkline
} from '@syncfusion/ej2-charts';
interface PopulationData {
year: string;
population: number;
}
const populationData:
PopulationData[] = [
{
year: '2005',
population: 20090440
},
{
year: '2006',
population: 20264080
},
{
year: '2007',
population: 20434180
},
{
year: '2008',
population: 21007310
},
{
year: '2009',
population: 21262640
},
{
year: '2010',
population: 21515750
},
{
year: '2011',
population: 21766710
}
];
const sparkline: Sparkline =
new Sparkline({
width: '100%',
height: '120px',
type: 'Line',
valueType: 'Category',
dataSource:
populationData,
xName: 'year',
yName: 'population',
fill: '#2563EB',
lineWidth: 2,
markerSettings: {
visible: [
'High',
'Low'
],
size: 7,
fill: '#FFFFFF',
border: {
color: '#1D4ED8',
width: 2
}
}
});
sparkline.appendTo('#sparkline');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>EJ2 JavaScript Sparkline</title>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
<style>
.sparkline-wrapper {
width: 100%;
max-width: 400px;
}
#sparkline {
width: 100%;
height: 120px;
}
</style>
</head>
<body>
<div class="sparkline-wrapper">
<div id="sparkline"></div>
</div>
<script>
var populationData = [
{
year: '2005',
population: 20090440
},
{
year: '2006',
population: 20264080
},
{
year: '2007',
population: 20434180
},
{
year: '2008',
population: 21007310
},
{
year: '2009',
population: 21262640
},
{
year: '2010',
population: 21515750
},
{
year: '2011',
population: 21766710
}
];
var sparkline =
new ej.charts.Sparkline({
width: '100%',
height: '120px',
type: 'Line',
valueType: 'Category',
dataSource:
populationData,
xName: 'year',
yName: 'population',
fill: '#2563EB',
lineWidth: 2,
markerSettings: {
visible: [
'High',
'Low'
],
size: 7,
fill: '#FFFFFF',
border: {
color: '#1D4ED8',
width: 2
}
}
});
sparkline.appendTo('#sparkline');
</script>
</body>
</html>
const sparkline: Sparkline =
new Sparkline({
type: 'Line',
valueType: 'Numeric',
dataSource: [
2,
6,
4,
1,
3,
2,
5
],
fill: '#2563EB',
lineWidth: 2
});
Use Line for ordered trends and continuous sequences.
const sparkline: Sparkline =
new Sparkline({
type: 'Column',
valueType: 'Numeric',
dataSource: [
35,
28,
34,
42
],
fill: '#2563EB'
});
Use Column for discrete value comparison.
const sparkline: Sparkline =
new Sparkline({
type: 'Area',
valueType: 'Numeric',
dataSource: [
3,
6,
4,
1,
3,
2,
5
],
fill:
'rgba(37, 99, 235, 0.28)',
lineWidth: 2,
border: {
color: '#1D4ED8',
width: 1
}
});
Use Area when trend and magnitude relative to a baseline matter.
Do not describe Area as cumulative unless the datasource itself contains cumulative values.
const sparkline: Sparkline =
new Sparkline({
type: 'Pie',
valueType: 'Numeric',
dataSource: [
40,
30,
20,
10
],
palette: [
'#2563EB',
'#EA580C',
'#15803D',
'#7C3AED'
]
});
Use Pie for a small number of meaningful proportions.
const sparkline: Sparkline =
new Sparkline({
type: 'WinLoss',
valueType: 'Numeric',
dataSource: [
1,
-1,
1,
1,
0,
-1,
1
],
fill: '#15803D',
negativePointColor:
'#DC2626',
tiePointColor: '#64748B'
});
Use:
fill for positive outcomes.negativePointColor for negative outcomes.tiePointColor for neutral outcomes.Do not use highPointColor and lowPointColor as the primary WinLoss colors.
const sparkline: Sparkline =
new Sparkline({
valueType: 'Numeric',
dataSource: [
2,
6,
4,
1,
3
]
});
Do not configure field mappings for a numeric array.
interface NumericData {
sequence: number;
value: number;
}
const data:
NumericData[] = [
{
sequence: 1,
value: 35
},
{
sequence: 2,
value: 28
}
];
const sparkline: Sparkline =
new Sparkline({
valueType: 'Numeric',
dataSource: data,
xName: 'sequence',
yName: 'value'
});
interface SalesData {
month: string;
sales: number;
}
const salesData:
SalesData[] = [
{
month: 'Jan',
sales: 35
},
{
month: 'Feb',
sales: 28
}
];
const sparkline: Sparkline =
new Sparkline({
valueType: 'Category',
dataSource: salesData,
xName: 'month',
yName: 'sales'
});
interface TimeSeriesData {
date: Date;
value: number;
}
const timeSeriesData:
TimeSeriesData[] = [
{
date:
new Date(2025, 0, 1),
value: 21
},
{
date:
new Date(2025, 0, 2),
value: 24
}
];
const sparkline: Sparkline =
new Sparkline({
valueType: 'DateTime',
dataSource:
timeSeriesData,
xName: 'date',
yName: 'value'
});
Use JavaScript Date instances rather than ambiguous date strings.
Marker visibility is an array.
markerSettings: {
visible: [
'High',
'Low'
],
size: 8,
fill: '#FFFFFF',
opacity: 1,
border: {
color: '#111827',
width: 2
}
}
Supported point categories include:
All
Start
End
High
Low
Negative
None
Special-point colors belong at Sparkline root level:
startPointColor: '#7C3AED',
endPointColor: '#EA580C',
highPointColor: '#15803D',
lowPointColor: '#DC2626',
negativePointColor: '#B91C1C',
tiePointColor: '#64748B'
Incorrect:
markerSettings: {
highPointColor: '#15803D',
lowPointColor: '#DC2626'
}
Use dataLabelSettings.
dataLabelSettings: {
visible: [
'High',
'Low'
],
format: '${y}',
fill: '#FFFFFF',
opacity: 0.95,
border: {
color: '#64748B',
width: 1
},
textStyle: {
color: '#111827',
size: '11px',
fontFamily: 'Segoe UI',
fontWeight: '600'
}
}
Data-label visibility accepts an array.
Incorrect:
dataLabelSettings: {
visible: true
}
Correct:
dataLabelSettings: {
visible: [
'All'
]
}
Do not use:
dataLabel
as the Sparkline configuration property.
import {
Sparkline,
SparklineTooltip
} from '@syncfusion/ej2-charts';
Sparkline.Inject(
SparklineTooltip
);
tooltipSettings: {
visible: true,
format: '${x} : ${y}',
fill: '#111827',
border: {
color: '#374151',
width: 1
},
textStyle: {
color: '#FFFFFF',
size: '12px',
fontFamily: 'Segoe UI',
fontWeight: '500'
}
}
tooltipSettings: {
visible: true,
format: '${x} : ${y}',
trackLineSettings: {
visible: true,
color: '#64748B',
width: 1
}
}
Do not use:
trackball: {
enable: true
}
Do not use:
tooltip: {
enable: true
}
Use an array of range-band objects:
rangeBandSettings: [
{
startRange: 0,
endRange: 60,
color: '#FCA5A5',
opacity: 0.25
},
{
startRange: 60,
endRange: 80,
color: '#FDE68A',
opacity: 0.25
},
{
startRange: 80,
endRange: 100,
color: '#86EFAC',
opacity: 0.25
}
]
Do not use:
rangeBandSettings: {
startValue: 30,
endValue: 40
}
Use:
startRange
and:
endRange
Align range bands with the configured y-axis range:
axisSettings: {
minY: 0,
maxY: 100
}
Sparkline does not expose conventional x-axis and y-axis text labels.
The axisSettings model configures:
minXmaxXminYmaxYvaluelineSettingsaxisSettings: {
minY: 0,
maxY: 100,
value: 60,
lineSettings: {
visible: true,
color: '#64748B',
width: 1,
opacity: 1
}
}
The value property positions the horizontal reference line.
Do not use:
axisSettings: {
lineStyle: {}
}
Use:
axisSettings: {
lineSettings: {}
}
Do not use unsupported axis properties such as:
labelStyle
labelPosition
labelRotation
labelFormat
Use data labels, tooltips, or external HTML when visible textual values are required.
containerArea: {
background: '#FFFFFF',
border: {
color: '#CBD5E1',
width: 1
}
}
padding: {
left: 12,
right: 12,
top: 20,
bottom: 12
}
padding is a root Sparkline property.
Do not place it inside containerArea.
Use CSS on a wrapper:
.sparkline-wrapper {
margin: 16px;
}
width: '100%',
height: '140px'
The parent must provide a measurable width.
Prefer typed event arguments when available.
import {
IPointRenderingEventArgs,
Sparkline
} from '@syncfusion/ej2-charts';
const sparkline: Sparkline =
new Sparkline({
type: 'Column',
dataSource: [
45,
78,
65,
92
],
pointRendering: (
args:
IPointRenderingEventArgs
): void => {
const value: number =
args.point.yVal;
if (value >= 80) {
args.fill = '#15803D';
} else if (value >= 60) {
args.fill = '#CA8A04';
} else {
args.fill = '#DC2626';
}
}
});
Use:
pointRendering
not:
pointRender
A rendering event is not a click, hover, or selection event.
Do not claim that Sparkline provides a built-in point-selection model comparable to the full Chart component.
If selection is required:
<select>, button group, list, or table.Do not depend on generated SVG IDs or internal classes.
sparkline.dataSource =
updatedData;
sparkline.dataBind();
sparkline.markerSettings.visible = [
'High',
'Low'
];
sparkline.markerSettings.size = 10;
sparkline.dataBind();
sparkline.highPointColor =
'#15803D';
sparkline.lowPointColor =
'#DC2626';
sparkline.dataBind();
sparkline.rangeBandSettings = [
{
startRange: 80,
endRange: 100,
color: '#86EFAC',
opacity: 0.3
}
];
sparkline.dataBind();
sparkline.type = 'Column';
sparkline.dataBind();
sparkline.fill = '#DC2626';
sparkline.border = {
color: '#7F1D1D',
width: 1
};
sparkline.dataBind();
Batch related changes and call dataBind() once.
Use refresh() when:
A Sparkline must not rely only on visual presentation or pointer tooltips.
Provide:
Example:
<figure aria-labelledby="sales-caption">
<figcaption id="sales-caption">
Monthly sales
</figcaption>
<p id="sales-description">
Sales declined in February and then increased
to the highest value in June.
</p>
<div
id="sparkline"
aria-describedby="sales-description"
></div>
<details>
<summary>
View monthly sales data
</summary>
<table>
<caption>
Monthly sales values
</caption>
<thead>
<tr>
<th scope="col">
Month
</th>
<th scope="col">
Sales
</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">
January
</th>
<td>35</td>
</tr>
</tbody>
</table>
</details>
</figure>
Do not make a static Sparkline focusable unless it offers a meaningful keyboard action.
Do not make tooltips the only source of exact values.
Use:
enableRtl: true
For an RTL section:
<section lang="ar" dir="rtl">
<div id="sparkline"></div>
</section>
Use both enableRtl and the appropriate surrounding HTML direction when the complete section is RTL.
Translate Category datasource values through the application:
const localizedData = [
{
label: 'Janvier',
value: 35
},
{
label: 'Février',
value: 28
}
];
const sparkline: Sparkline =
new Sparkline({
valueType: 'Category',
dataSource: localizedData,
xName: 'label',
yName: 'value'
});
Use Intl.NumberFormat for surrounding text and tables:
const formattedValue: string =
new Intl.NumberFormat(
'fr-FR'
).format(35000);
Use Intl.DateTimeFormat for localized dates:
const formattedDate: string =
new Intl.DateTimeFormat(
'fr-FR',
{
year: 'numeric',
month: 'long',
day: 'numeric'
}
).format(
new Date(2025, 0, 1)
);
Sparkline has little built-in textual UI, so localization commonly applies to:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Complete EJ2 Sparkline</title>
<style>
body {
margin: 0;
padding: 24px;
background: #F8FAFC;
color: #0F172A;
font-family: "Segoe UI", sans-serif;
}
.sparkline-card {
width: 100%;
max-width: 640px;
padding: 20px;
box-sizing: border-box;
border: 1px solid #CBD5E1;
border-radius: 12px;
background: #FFFFFF;
}
.sparkline-toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.sparkline-toolbar button {
padding: 8px 12px;
border: 1px solid #64748B;
border-radius: 6px;
background: #FFFFFF;
color: #0F172A;
cursor: pointer;
}
.sparkline-toolbar button:focus-visible {
outline: 3px solid #2563EB;
outline-offset: 2px;
}
#sparkline {
width: 100%;
height: 220px;
}
table {
width: 100%;
margin-top: 12px;
border-collapse: collapse;
}
th,
td {
padding: 8px;
border: 1px solid #CBD5E1;
text-align: start;
}
</style>
</head>
<body>
<main
class="sparkline-card"
aria-labelledby="sparkline-heading"
>
<h1 id="sparkline-heading">
Monthly Performance
</h1>
<p id="sparkline-description">
Values below 60 are below target, values
from 60 to 79 are acceptable, and values
of 80 or more are excellent.
</p>
<div class="sparkline-toolbar">
<button
id="show-line"
type="button"
>
Line
</button>
<button
id="show-column"
type="button"
>
Column
</button>
<button
id="toggle-tooltip"
type="button"
>
Disable Tooltip
</button>
<button
id="update-data"
type="button"
>
Update Data
</button>
</div>
<div
id="sparkline"
aria-describedby="sparkline-description"
></div>
<details>
<summary>
View performance data
</summary>
<table>
<caption>
Monthly performance values
</caption>
<thead>
<tr>
<th scope="col">
Month
</th>
<th scope="col">
Score
</th>
</tr>
</thead>
<tbody id="data-body">
</tbody>
</table>
</details>
</main>
<script scr="index.js"></script>
</body>
</html>
import {
IPointRenderingEventArgs,
Sparkline,
SparklineTooltip
} from '@syncfusion/ej2-charts';
interface PerformanceData {
month: string;
score: number;
}
Sparkline.Inject(
SparklineTooltip
);
const initialData:
PerformanceData[] = [
{
month: 'Jan',
score: 45
},
{
month: 'Feb',
score: 78
},
{
month: 'Mar',
score: 65
},
{
month: 'Apr',
score: 92
},
{
month: 'May',
score: 55
},
{
month: 'Jun',
score: 88
}
];
const updatedData:
PerformanceData[] = [
{
month: 'Jan',
score: 58
},
{
month: 'Feb',
score: 81
},
{
month: 'Mar',
score: 72
},
{
month: 'Apr',
score: 95
},
{
month: 'May',
score: 64
},
{
month: 'Jun',
score: 90
}
];
const sparklineElement:
HTMLElement | null =
document.querySelector(
'#sparkline'
);
if (!sparklineElement) {
throw new Error(
'The Sparkline host was not found.'
);
}
const sparkline: Sparkline =
new Sparkline({
width: '100%',
height: '220px',
type: 'Line',
valueType: 'Category',
dataSource: initialData,
xName: 'month',
yName: 'score',
fill: '#2563EB',
lineWidth: 3,
highPointColor: '#15803D',
lowPointColor: '#DC2626',
axisSettings: {
minY: 0,
maxY: 100,
value: 60,
lineSettings: {
visible: true,
color: '#475569',
width: 1
}
},
rangeBandSettings: [
{
startRange: 0,
endRange: 60,
color: '#FCA5A5',
opacity: 0.18
},
{
startRange: 60,
endRange: 80,
color: '#FDE68A',
opacity: 0.18
},
{
startRange: 80,
endRange: 100,
color: '#86EFAC',
opacity: 0.18
}
],
markerSettings: {
visible: [
'All'
],
size: 7,
fill: '#FFFFFF',
border: {
color: '#111827',
width: 2
}
},
dataLabelSettings: {
visible: [
'High',
'Low'
],
format: '${y}',
fill: '#FFFFFF',
border: {
color: '#475569',
width: 1
},
textStyle: {
color: '#111827',
size: '11px',
fontFamily: 'Segoe UI',
fontWeight: '600'
}
},
tooltipSettings: {
visible: true,
format: '${x} : ${y}',
fill: '#111827',
border: {
color: '#374151',
width: 1
},
textStyle: {
color: '#FFFFFF',
size: '12px',
fontFamily: 'Segoe UI',
fontWeight: '500'
},
trackLineSettings: {
visible: true,
color: '#475569',
width: 1
}
},
pointRendering: (
args:
IPointRenderingEventArgs
): void => {
const value: number =
args.point.yVal;
if (value >= 80) {
args.fill = '#15803D';
} else if (value >= 60) {
args.fill = '#CA8A04';
} else {
args.fill = '#DC2626';
}
},
containerArea: {
background: '#FFFFFF',
border: {
color: '#CBD5E1',
width: 1
}
},
padding: {
left: 14,
right: 14,
top: 28,
bottom: 14
}
});
sparkline.appendTo(
sparklineElement
);
const renderTable = (
data: PerformanceData[]
): void => {
const body:
HTMLTableSectionElement | null =
document.querySelector(
'#data-body'
);
if (!body) {
return;
}
body.replaceChildren();
data.forEach(
(
item: PerformanceData
): void => {
const row:
HTMLTableRowElement =
document.createElement(
'tr'
);
const month:
HTMLTableCellElement =
document.createElement(
'th'
);
month.scope = 'row';
month.textContent =
item.month;
const score:
HTMLTableCellElement =
document.createElement(
'td'
);
score.textContent =
String(item.score);
row.append(
month,
score
);
body.append(row);
}
);
};
renderTable(initialData);
const bindButton = (
selector: string,
handler: () => void
): void => {
const button:
HTMLButtonElement | null =
document.querySelector(
selector
);
if (button) {
button.addEventListener(
'click',
handler
);
}
};
bindButton(
'#show-line',
(): void => {
sparkline.type = 'Line';
sparkline.fill = '#2563EB';
sparkline.lineWidth = 3;
sparkline
.markerSettings
.visible = [
'All'
];
sparkline.dataBind();
}
);
bindButton(
'#show-column',
(): void => {
sparkline.type = 'Column';
sparkline.fill = '#2563EB';
sparkline
.markerSettings
.visible = [];
sparkline.dataBind();
}
);
bindButton(
'#toggle-tooltip',
(): void => {
sparkline
.tooltipSettings
.visible =
!sparkline
.tooltipSettings
.visible;
const button:
HTMLButtonElement | null =
document.querySelector(
'#toggle-tooltip'
);
if (button) {
button.textContent =
sparkline
.tooltipSettings
.visible
? 'Disable Tooltip'
: 'Enable Tooltip';
}
sparkline.dataBind();
}
);
bindButton(
'#update-data',
(): void => {
sparkline.dataSource =
updatedData;
sparkline.dataBind();
renderTable(updatedData);
}
);
When generating a Sparkline solution:
Sparkline from @syncfusion/ej2-charts.ej.charts.Sparkline in JavaScript.valueType to the x-values.markerSettings for markers.dataLabelSettings for data labels.tooltipSettings for tooltips.SparklineTooltip when tooltips are used in TypeScript.trackLineSettings.trackball.startRange and endRange.axisSettings.lineSettings.lineWidth for Line and Area path thickness.palette for Pie segments.fill, negativePointColor, and tiePointColor for WinLoss.dataBind() after ordinary property updates.refresh() for complete layout recalculation.Incorrect:
Sparkline.Inject();
Basic Sparkline rendering does not require injection.
Incorrect:
dataSource: data,
xName: 'month',
yName: 'sales'
Correct:
valueType: 'Category',
dataSource: data,
xName: 'month',
yName: 'sales'
Incorrect:
dataSource: data,
xName: 'date',
yName: 'value'
Correct:
valueType: 'DateTime',
dataSource: data,
xName: 'date',
yName: 'value'
Incorrect:
markerSettings: {
visible: [
'High',
'Low'
],
highPointColor: '#15803D',
lowPointColor: '#DC2626'
}
Correct:
highPointColor: '#15803D',
lowPointColor: '#DC2626',
markerSettings: {
visible: [
'High',
'Low'
]
}
Incorrect:
type: 'WinLoss',
highPointColor: '#15803D',
lowPointColor: '#DC2626'
Correct:
type: 'WinLoss',
fill: '#15803D',
negativePointColor: '#DC2626',
tiePointColor: '#64748B'
Incorrect:
dataLabel: {
visible: true
}
Correct:
dataLabelSettings: {
visible: [
'All'
]
}
Incorrect:
tooltip: {
enable: true
}
Correct:
tooltipSettings: {
visible: true
}
Incorrect:
trackball: {
enable: true
}
Correct:
tooltipSettings: {
visible: true,
trackLineSettings: {
visible: true
}
}
Incorrect:
rangeBandSettings: {
startValue: 30,
endValue: 40
}
Correct:
rangeBandSettings: [
{
startRange: 30,
endRange: 40
}
]
Incorrect:
axisSettings: {
lineStyle: {},
labelStyle: {}
}
Correct:
axisSettings: {
lineSettings: {
visible: true
}
}
Sparkline does not expose conventional axis-label styling.
Incorrect:
pointRender: (
args: any
): void => {
}
Correct:
pointRendering: (
args:
IPointRenderingEventArgs
): void => {
}
Do not claim built-in Sparkline point selection without explicit API support.
Use native controls and application state.
Avoid:
sparkline.fill = '#DC2626';
sparkline.refresh();
Preferred:
sparkline.fill = '#DC2626';
sparkline.dataBind();
Before returning a Sparkline implementation, verify:
Sparkline uses the correct casing.@syncfusion/ej2-charts.ej.charts.Sparkline.xName and yName.Numeric.Category.DateTime.Date objects.SparklineTooltip.SparklineTooltip.tooltipSettings.trackLineSettings.startRange and endRange.lineSettings.lineWidth.palette.dataBind().refresh() only when necessary.enableRtl.references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/accessibility-localization.md (opens in a new tab)references/appearance-styling.md (opens in a new tab)references/axis-customization.md (opens in a new tab)references/data-labels-and-tooltips.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/markers-and-points.md (opens in a new tab)references/range-bands.md (opens in a new tab)references/sparkline-types.md (opens in a new tab)references/user-interaction.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