/syncfusion-javascript:syncfusion-javascript-smith-chartfrom Syncfusion JavaScript UI Controls
Guide to implementing Syncfusion SmithChart in TypeScript and JavaScript for visualizing transmission line parameters and impedance/admittance data. Use this skill ALWAYS when user needs to create smith charts, visualize network parameters, display impedance plots, configure axes and gridlines, add markers and data labels, customize legends and tooltips, or handle high-frequency circuit data visualization. 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 SmithChart is a specialized visualization component for plotting normalized complex impedance or admittance data in high-frequency circuit, transmission-line, antenna, matching-network, and network-analysis applications.
This skill covers only:
@syncfusion/ej2-chartsej.charts.SmithchartDo 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 SmithChart from:
import {
Smithchart
} from '@syncfusion/ej2-charts';
Create and render the component:
const smithchart: Smithchart =
new Smithchart(configuration);
smithchart.appendTo(
'#smithchart-container'
);
The basic SmithChart does not require module injection.
Optional features require injection:
import {
Smithchart,
SmithchartLegend,
TooltipRender
} from '@syncfusion/ej2-charts';
Smithchart.Inject(
SmithchartLegend,
TooltipRender
);
Use JavaScript when the project requires:
Create SmithChart through:
var smithchart =
new ej.charts.Smithchart(
configuration
);
smithchart.appendTo(
'#smithchart-container'
);
When the complete EJ2 global bundle is loaded, TypeScript-style imports and explicit feature injection are not required.
Use this skill when the user needs to:
Before generating SmithChart code, complete each validation step.
Determine whether the requested solution is:
Do not substitute a framework wrapper.
SmithChart supports two root-level rendering modes:
Impedance
Admittance
Impedance:
renderType: 'Impedance'
Admittance:
renderType: 'Admittance'
Do not place the rendering mode inside an individual series.
Incorrect:
series: [
{
type: 'Impedance'
}
]
Correct:
const smithchart: Smithchart =
new Smithchart({
renderType: 'Impedance',
series: [
{
points: data
}
]
});
Determine whether the input contains:
Do not map raw S11 real and imaginary values directly as normalized impedance unless the data has already been converted.
Inline SmithChart points require:
{
resistance: number,
reactance: number
}
Both values must be finite numbers.
const isValidPoint = (
point: SmithChartPoint
): boolean => {
return (
Number.isFinite(
point.resistance
) &&
Number.isFinite(
point.reactance
)
);
};
Validate every optional feature before generating imports.
| Feature | Required TypeScript Module |
|---|---|
| Basic SmithChart | No optional module |
| Marker | No optional module |
| Data label | No optional module |
| Tooltip | TooltipRender |
| Legend | SmithchartLegend |
| Axis customization | No optional module |
| No optional module | |
| Export | No optional module |
For tooltip and legend:
import {
Smithchart,
SmithchartLegend,
TooltipRender
} from '@syncfusion/ej2-charts';
Smithchart.Inject(
SmithchartLegend,
TooltipRender
);
Do not generate the component configuration first and verify modules afterward.
Use:
marker
not:
markerSettings
Use:
marker: {
dataLabel: {
visible: true
}
}
not:
dataLabelSettings: {
visible: true
}
Use the tooltip at series level:
series: [
{
tooltip: {
visible: true
}
}
]
Do not use a Chart-style root tooltip:
tooltip: {
enable: true
}
Confirm that:
appendTo(...).Read:
references/getting-started.md
Use it for:
Read:
references/series-and-data.md
Use it for:
Read:
references/axis-configuration.md
Use it for:
Read:
references/markers-and-labels.md
Use it for:
Read:
references/customization-and-legends.md
Use it for:
Install the EJ2 Charts package:
npm install @syncfusion/ej2-charts
Do not require separate installation of every transitive dependency unless the package manager reports a specific unresolved dependency.
Don't Load an EJ2 theme stylesheet:
Keep the configured theme aligned:
theme: 'Material'
Create the host element before initializing SmithChart.
<div class="smithchart-wrapper">
<div id="smithchart-container"></div>
</div>
.smithchart-wrapper {
width: 100%;
max-width: 1000px;
margin: 0 auto;
}
#smithchart-container {
width: 100%;
min-height: 550px;
}
The component can also define dimensions:
width: '100%',
height: '550px'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>EJ2 SmithChart</title>
<style>
#smithchart-container {
width: 100%;
min-height: 500px;
}
</style>
</head>
<body>
<div id="smithchart-container"></div>
<script scr="index.js"></script>
</body>
</html>
import {
Smithchart
} from '@syncfusion/ej2-charts';
interface SmithChartPoint {
resistance: number;
reactance: number;
}
const data: SmithChartPoint[] = [
{
resistance: 2.5,
reactance: 1.3
},
{
resistance: 2,
reactance: 1
},
{
resistance: 1.5,
reactance: 0.5
},
{
resistance: 1,
reactance: 0
},
{
resistance: 0.8,
reactance: -0.2
}
];
const smithchart: Smithchart =
new Smithchart({
width: '100%',
height: '500px',
renderType: 'Impedance',
series: [
{
points: data,
fill: '#2563EB',
width: 2,
marker: {
visible: true
}
}
]
});
smithchart.appendTo(
'#smithchart-container'
);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>EJ2 JavaScript SmithChart</title>
<script src="https://cdn.syncfusion.com/ej2/34.2.2/dist/ej2.min.js"></script>
<style>
#smithchart-container {
width: 100%;
min-height: 500px;
}
</style>
</head>
<body>
<div id="smithchart-container"></div>
<script>
var data = [
{
resistance: 2.5,
reactance: 1.3
},
{
resistance: 2,
reactance: 1
},
{
resistance: 1.5,
reactance: 0.5
},
{
resistance: 1,
reactance: 0
},
{
resistance: 0.8,
reactance: -0.2
}
];
var smithchart =
new ej.charts.Smithchart({
width: '100%',
height: '500px',
renderType: 'Impedance',
series: [
{
points: data,
fill: '#2563EB',
width: 2,
marker: {
visible: true
}
}
]
});
smithchart.appendTo(
'#smithchart-container'
);
</script>
</body>
</html>
Use:
renderType: 'Impedance'
A normalized impedance point represents:
z = r + jx
where:
r is normalized resistance.x is normalized reactance.The normalized matched-load point is:
{
resistance: 1,
reactance: 0
}
It is not:
{
resistance: 0,
reactance: 0
}
Use:
renderType: 'Admittance'
A normalized admittance point represents:
y = g + jb
The SmithChart point fields remain:
{
resistance: number,
reactance: number
}
In admittance mode, these mapped fields represent the real and imaginary admittance coordinates used for rendering.
A single SmithChart has one rendering mode.
Do not mix rendering modes per series.
Use separate components:
const impedanceChart: Smithchart =
new Smithchart({
renderType: 'Impedance',
series: impedanceSeries
});
const admittanceChart: Smithchart =
new Smithchart({
renderType: 'Admittance',
series: admittanceSeries
});
impedanceChart.appendTo(
'#impedance-smithchart'
);
admittanceChart.appendTo(
'#admittance-smithchart'
);
For reference impedance Z0:
r = R / Z0
x = X / Z0
TypeScript:
interface AbsoluteImpedance {
resistanceOhms: number;
reactanceOhms: number;
}
interface SmithChartPoint {
resistance: number;
reactance: number;
}
const normalizeImpedance = (
value: AbsoluteImpedance,
referenceImpedance: number
): SmithChartPoint => {
if (
!Number.isFinite(
referenceImpedance
) ||
referenceImpedance <= 0
) {
throw new Error(
'Reference impedance must be positive.'
);
}
return {
resistance:
value.resistanceOhms /
referenceImpedance,
reactance:
value.reactanceOhms /
referenceImpedance
};
};
For a 50-ohm system:
const normalizedPoint: SmithChartPoint =
normalizeImpedance(
{
resistanceOhms: 75,
reactanceOhms: 25
},
50
);
Result:
{
resistance: 1.5,
reactance: 0.5
}
For:
z = r + jx
the normalized admittance is:
g = r / (r² + x²)
b = -x / (r² + x²)
const impedanceToAdmittance = (
impedance: SmithChartPoint
): SmithChartPoint => {
const denominator: number =
(
impedance.resistance *
impedance.resistance
) +
(
impedance.reactance *
impedance.reactance
);
if (denominator === 0) {
throw new Error(
'Zero impedance cannot be converted to finite admittance.'
);
}
return {
resistance:
impedance.resistance /
denominator,
reactance:
-impedance.reactance /
denominator
};
};
Raw S11 real and imaginary values are reflection-coefficient values.
For:
Γ = a + jb
normalized impedance is:
z = (1 + Γ) / (1 - Γ)
interface ReflectionCoefficient {
real: number;
imaginary: number;
}
const reflectionToImpedance = (
reflection: ReflectionCoefficient
): SmithChartPoint => {
const denominatorReal: number =
1 - reflection.real;
const denominatorImaginary: number =
-reflection.imaginary;
const numeratorReal: number =
1 + reflection.real;
const numeratorImaginary: number =
reflection.imaginary;
const denominatorMagnitudeSquared:
number =
(
denominatorReal *
denominatorReal
) +
(
denominatorImaginary *
denominatorImaginary
);
if (
denominatorMagnitudeSquared === 0
) {
throw new Error(
'The reflection coefficient produces infinite impedance.'
);
}
return {
resistance:
(
numeratorReal *
denominatorReal +
numeratorImaginary *
denominatorImaginary
) /
denominatorMagnitudeSquared,
reactance:
(
numeratorImaginary *
denominatorReal -
numeratorReal *
denominatorImaginary
) /
denominatorMagnitudeSquared
};
};
series: [
{
points: [
{
resistance: 2,
reactance: 1
},
{
resistance: 1.5,
reactance: 0.5
},
{
resistance: 1,
reactance: 0
}
]
}
]
Use mapping when the source fields have custom names:
interface Measurement {
frequencyGHz: number;
normalizedResistance: number;
normalizedReactance: number;
}
const measurements: Measurement[] = [
{
frequencyGHz: 1,
normalizedResistance: 2,
normalizedReactance: 1
},
{
frequencyGHz: 1.5,
normalizedResistance: 1.5,
normalizedReactance: 0.5
},
{
frequencyGHz: 2,
normalizedResistance: 1,
normalizedReactance: 0
}
];
series: [
{
dataSource: measurements,
resistance:
'normalizedResistance',
reactance:
'normalizedReactance'
}
]
Choose either inline points or mapped dataSource for each series.
A SmithChart can render multiple series within the same rendering mode.
If a legend is visible, import and inject SmithchartLegend.
import {
Smithchart,
SmithchartLegend
} from '@syncfusion/ej2-charts';
Smithchart.Inject(
SmithchartLegend
);
Example:
const smithchart: Smithchart =
new Smithchart({
renderType: 'Impedance',
legendSettings: {
visible: true,
position: 'Bottom',
toggleVisibility: true
},
series: [
{
name: 'Measured',
points: measuredData,
fill: '#2563EB',
width: 2,
marker: {
visible: true,
shape: 'Circle'
}
},
{
name: 'Simulated',
points: simulatedData,
fill: '#DC2626',
width: 2,
marker: {
visible: true,
shape: 'Diamond'
}
}
]
});
SmithChart has:
horizontalAxisradialAxisAxis customization does not require an optional injected module.
horizontalAxis: {
visible: true,
labelPosition: 'Inside',
labelIntersectAction: 'Hide',
labelStyle: {
color: '#1D4ED8',
size: '12px',
fontFamily: 'Segoe UI',
fontStyle: 'Normal',
fontWeight: '600',
opacity: 1
},
majorGridLines: {
visible: true,
color: '#94A3B8',
width: 1,
opacity: 0.75
},
minorGridLines: {
visible: true,
color: '#CBD5E1',
width: 0.5,
opacity: 0.45,
count: 2
},
axisLine: {
visible: true,
color: '#475569',
width: 1
}
}
radialAxis: {
visible: true,
labelPosition: 'Inside',
labelIntersectAction: 'Hide',
labelStyle: {
color: '#9F1239',
size: '12px',
fontFamily: 'Segoe UI',
fontStyle: 'Normal',
fontWeight: '600',
opacity: 1
},
majorGridLines: {
visible: true,
color: '#94A3B8',
width: 1,
opacity: 0.75
},
minorGridLines: {
visible: true,
color: '#CBD5E1',
width: 0.5,
opacity: 0.45,
count: 2
},
axisLine: {
visible: true,
color: '#475569',
width: 1
}
}
Valid label positions:
Inside
Outside
Valid label intersection values include:
Hide
None
Do not add unvalidated dashArray properties to SmithChart axis lines or gridlines.
Use:
marker: {
visible: true,
shape: 'Circle',
width: 10,
height: 10,
fill: '#3B82F6',
opacity: 1,
border: {
color: '#1E3A8A',
width: 2
}
}
Do not use:
markerSettings
Data labels are nested inside marker.
marker: {
visible: true,
dataLabel: {
visible: true,
fill: '#EFF6FF',
opacity: 0.95,
border: {
color: '#2563EB',
width: 1
},
connectorLine: {
color: '#64748B',
width: 1
},
textStyle: {
color: '#1E3A8A',
size: '11px',
fontFamily: 'Segoe UI',
fontStyle: 'Normal',
fontWeight: '600',
opacity: 1
}
}
}
Do not use:
dataLabelSettings
Do not assume position, alignment, or Chart-style format properties are supported by SmithChart data labels.
Tooltips require TooltipRender in TypeScript.
import {
Smithchart,
TooltipRender
} from '@syncfusion/ej2-charts';
Smithchart.Inject(
TooltipRender
);
Configure the tooltip inside each series:
series: [
{
points: data,
marker: {
visible: true
},
tooltip: {
visible: true,
fill: '#111827',
opacity: 0.95,
border: {
color: '#374151',
width: 1
},
textStyle: {
color: '#FFFFFF',
size: '12px',
fontFamily: 'Segoe UI',
fontWeight: '500'
}
}
}
]
Do not use:
SmithchartTooltip
Do not use:
tooltip: {
enable: true
}
at SmithChart root level.
Legends require SmithchartLegend in TypeScript.
import {
Smithchart,
SmithchartLegend
} from '@syncfusion/ej2-charts';
Smithchart.Inject(
SmithchartLegend
);
Configure:
legendSettings: {
visible: true,
position: 'Bottom',
alignment: 'Center',
background: '#F8FAFC',
itemPadding: 18,
shapeWidth: 14,
shapeHeight: 14,
toggleVisibility: true,
border: {
color: '#CBD5E1',
width: 1
},
textStyle: {
color: '#1F2937',
size: '12px',
fontFamily: 'Segoe UI',
fontStyle: 'Normal',
fontWeight: '600'
}
}
Common positions:
Top
Bottom
Left
Right
Custom
Every legend-enabled series should have a meaningful name.
Configure the title as an object:
title: {
text: 'Transmission-Line Analysis',
visible: true,
textStyle: {
color: '#0F172A',
size: '20px',
fontFamily: 'Segoe UI',
fontWeight: '600'
},
subtitle: {
text:
'Measured and simulated impedance',
visible: true,
textStyle: {
color: '#475569',
size: '13px',
fontFamily: 'Segoe UI',
fontWeight: '400'
}
}
}
Do not use a plain title string:
title:
'Transmission-Line Analysis'
Replace the existing collection:
smithchart.series[0].points =
updatedData;
Apply the update:
smithchart.dataBind();
Use refresh() only when a complete rerender is required, such as:
const isSmallScreen = (): boolean => {
return window.matchMedia(
'(max-width: 767px)'
).matches;
};
const smithchart: Smithchart =
new Smithchart({
width: '100%',
height: isSmallScreen()
? '450px'
: '600px',
series: [
{
points: data
}
]
});
Debounce manual resize refreshes:
let resizeTimer: number | undefined;
window.addEventListener(
'resize',
(): void => {
if (
resizeTimer !== undefined
) {
window.clearTimeout(
resizeTimer
);
}
resizeTimer =
window.setTimeout(
(): void => {
smithchart.height =
isSmallScreen()
? '450px'
: '600px';
smithchart.refresh();
},
150
);
}
);
Enable component-level right-to-left rendering:
enableRtl: true
For an entirely RTL document:
<html lang="ar" dir="rtl">
Use the supported enableRtl property instead of relying only on CSS direction rules.
Use the public method:
smithchart.print();
Do not import or inject a Print module solely for this method.
Example:
const printButton:
HTMLButtonElement | null =
document.querySelector(
'#print-button'
);
if (printButton) {
printButton.addEventListener(
'click',
(): void => {
smithchart.print();
}
);
}
Supported formats include:
PNG
JPEG
SVG
PDF
PNG:
smithchart.export(
'PNG',
'smithchart-analysis'
);
SVG:
smithchart.export(
'SVG',
'smithchart-analysis'
);
PDF:
smithchart.export(
'PDF',
'smithchart-analysis'
);
Do not import or inject ImageExport solely for the SmithChart public export method.
Do not pass width and height as export arguments:
smithchart.export(
'PNG',
'smithchart',
1200,
800
);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Complete EJ2 SmithChart</title>
<style>
body {
margin: 0;
padding: 24px;
background: #F8FAFC;
color: #0F172A;
font-family: "Segoe UI", sans-serif;
}
.smithchart-report {
width: 100%;
max-width: 1100px;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
border: 1px solid #E2E8F0;
border-radius: 12px;
background: #FFFFFF;
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.toolbar button {
padding: 8px 14px;
border: 1px solid #CBD5E1;
border-radius: 6px;
background: #FFFFFF;
color: #0F172A;
cursor: pointer;
}
.toolbar button:focus-visible {
outline: 3px solid #93C5FD;
outline-offset: 2px;
}
#smithchart-container {
width: 100%;
min-height: 600px;
}
@media (max-width: 767px) {
body {
padding: 12px;
}
.smithchart-report {
padding: 12px;
}
#smithchart-container {
min-height: 450px;
}
}
@media print {
body {
padding: 0;
background: #FFFFFF;
}
.toolbar {
display: none;
}
.smithchart-report {
max-width: none;
padding: 0;
border: 0;
}
#smithchart-container {
width: 100% !important;
break-inside: avoid;
page-break-inside: avoid;
}
}
</style>
</head>
<body>
<main
class="smithchart-report"
aria-labelledby="smithchart-heading"
>
<h1 id="smithchart-heading">
Transmission-Line Analysis
</h1>
<p id="smithchart-description">
Comparison of measured and simulated
normalized impedance.
</p>
<div class="toolbar">
<button
id="update-data"
type="button"
>
Update Data
</button>
<button
id="reset-data"
type="button"
>
Reset Data
</button>
<button
id="toggle-rtl"
type="button"
>
Enable RTL
</button>
<button
id="export-png"
type="button"
>
Export PNG
</button>
<button
id="export-svg"
type="button"
>
Export SVG
</button>
<button
id="print-button"
type="button"
>
Print
</button>
</div>
<div
id="smithchart-container"
aria-describedby="smithchart-description"
></div>
</main>
<script scr="index.js"></script>
</body>
</html>
import {
Smithchart,
SmithchartLegend,
TooltipRender
} from '@syncfusion/ej2-charts';
interface SmithChartPoint {
resistance: number;
reactance: number;
}
Smithchart.Inject(
SmithchartLegend,
TooltipRender
);
const measuredData:
SmithChartPoint[] = [
{
resistance: 2.5,
reactance: 1.3
},
{
resistance: 2,
reactance: 1
},
{
resistance: 1.5,
reactance: 0.5
},
{
resistance: 1.2,
reactance: 0.2
},
{
resistance: 1,
reactance: 0
},
{
resistance: 0.8,
reactance: -0.2
}
];
const updatedMeasuredData:
SmithChartPoint[] = [
{
resistance: 2.3,
reactance: 1.1
},
{
resistance: 1.9,
reactance: 0.8
},
{
resistance: 1.5,
reactance: 0.4
},
{
resistance: 1.15,
reactance: 0.1
},
{
resistance: 1,
reactance: 0
},
{
resistance: 0.85,
reactance: -0.15
}
];
const simulatedData:
SmithChartPoint[] = [
{
resistance: 2.4,
reactance: 1.2
},
{
resistance: 1.95,
reactance: 0.9
},
{
resistance: 1.45,
reactance: 0.45
},
{
resistance: 1.1,
reactance: 0.08
},
{
resistance: 1,
reactance: 0
},
{
resistance: 0.82,
reactance: -0.18
}
];
const isSmallScreen = (): boolean => {
return window.matchMedia(
'(max-width: 767px)'
).matches;
};
const smithchart: Smithchart =
new Smithchart({
width: '100%',
height: isSmallScreen()
? '450px'
: '600px',
renderType: 'Impedance',
theme: 'Material',
background: '#FFFFFF',
title: {
text:
'Measured and Simulated Impedance',
visible: true,
textStyle: {
color: '#0F172A',
size: '20px',
fontFamily: 'Segoe UI',
fontWeight: '600'
},
subtitle: {
text:
'Normalized to a common reference impedance',
visible: true,
textStyle: {
color: '#475569',
size: '13px',
fontFamily: 'Segoe UI',
fontWeight: '400'
}
}
},
horizontalAxis: {
visible: true,
labelPosition: 'Inside',
labelIntersectAction: 'Hide',
labelStyle: {
color: '#1D4ED8',
size: isSmallScreen()
? '10px'
: '12px',
fontFamily: 'Segoe UI',
fontStyle: 'Normal',
fontWeight: '600',
opacity: 1
},
majorGridLines: {
visible: true,
color: '#94A3B8',
width: 1,
opacity: 0.75
},
minorGridLines: {
visible:
!isSmallScreen(),
color: '#CBD5E1',
width: 0.5,
opacity: 0.45,
count: 2
},
axisLine: {
visible: true,
color: '#475569',
width: 1
}
},
radialAxis: {
visible: true,
labelPosition: 'Inside',
labelIntersectAction: 'Hide',
labelStyle: {
color: '#9F1239',
size: isSmallScreen()
? '10px'
: '12px',
fontFamily: 'Segoe UI',
fontStyle: 'Normal',
fontWeight: '600',
opacity: 1
},
majorGridLines: {
visible: true,
color: '#94A3B8',
width: 1,
opacity: 0.75
},
minorGridLines: {
visible:
!isSmallScreen(),
color: '#CBD5E1',
width: 0.5,
opacity: 0.45,
count: 2
},
axisLine: {
visible: true,
color: '#475569',
width: 1
}
},
legendSettings: {
visible: true,
position: 'Bottom',
alignment: 'Center',
toggleVisibility: true,
itemPadding: 18,
shapeWidth: 14,
shapeHeight: 14,
textStyle: {
color: '#1F2937',
size: '12px',
fontFamily: 'Segoe UI',
fontWeight: '600'
}
},
series: [
{
name: 'Measured',
points: measuredData,
fill: '#2563EB',
width: 2,
marker: {
visible: true,
shape: 'Circle',
width: 10,
height: 10,
fill: '#3B82F6',
border: {
color: '#1E3A8A',
width: 2
},
dataLabel: {
visible: false
}
},
tooltip: {
visible: true,
fill: '#111827',
opacity: 0.95,
border: {
color: '#374151',
width: 1
},
textStyle: {
color: '#FFFFFF',
size: '12px',
fontFamily: 'Segoe UI',
fontWeight: '500'
}
}
},
{
name: 'Simulated',
points: simulatedData,
fill: '#DC2626',
width: 2,
marker: {
visible: true,
shape: 'Diamond',
width: 10,
height: 10,
fill: '#EF4444',
border: {
color: '#7F1D1D',
width: 2
},
dataLabel: {
visible: false
}
},
tooltip: {
visible: true,
fill: '#111827',
opacity: 0.95,
border: {
color: '#374151',
width: 1
},
textStyle: {
color: '#FFFFFF',
size: '12px',
fontFamily: 'Segoe UI',
fontWeight: '500'
}
}
}
]
});
smithchart.appendTo(
'#smithchart-container'
);
const bindButton = (
selector: string,
handler: () => void
): void => {
const button:
HTMLButtonElement | null =
document.querySelector(
selector
);
if (button) {
button.addEventListener(
'click',
handler
);
}
};
bindButton(
'#update-data',
(): void => {
smithchart.series[0].points =
updatedMeasuredData;
smithchart.dataBind();
}
);
bindButton(
'#reset-data',
(): void => {
smithchart.series[0].points =
measuredData;
smithchart.dataBind();
}
);
bindButton(
'#toggle-rtl',
(): void => {
smithchart.enableRtl =
!smithchart.enableRtl;
const button:
HTMLButtonElement | null =
document.querySelector(
'#toggle-rtl'
);
if (button) {
button.textContent =
smithchart.enableRtl
? 'Disable RTL'
: 'Enable RTL';
}
smithchart.dataBind();
}
);
bindButton(
'#export-png',
(): void => {
smithchart.export(
'PNG',
'smithchart-analysis'
);
}
);
bindButton(
'#export-svg',
(): void => {
smithchart.export(
'SVG',
'smithchart-analysis'
);
}
);
bindButton(
'#print-button',
(): void => {
smithchart.print();
}
);
let resizeTimer: number | undefined;
window.addEventListener(
'resize',
(): void => {
if (
resizeTimer !== undefined
) {
window.clearTimeout(
resizeTimer
);
}
resizeTimer =
window.setTimeout(
(): void => {
const mobile:
boolean =
isSmallScreen();
smithchart.height =
mobile
? '450px'
: '600px';
smithchart
.horizontalAxis
.labelStyle
.size =
mobile
? '10px'
: '12px';
smithchart
.radialAxis
.labelStyle
.size =
mobile
? '10px'
: '12px';
smithchart
.horizontalAxis
.minorGridLines
.visible =
!mobile;
smithchart
.radialAxis
.minorGridLines
.visible =
!mobile;
smithchart.refresh();
},
150
);
}
);
When generating a final SmithChart solution:
Smithchart.Inject(...) before generating code.Smithchart casing.ej.charts.Smithchart for JavaScript.renderType at SmithChart root level.type to individual series.points for inline data.dataSource, resistance, and reactance for mapped data.marker, not markerSettings.marker.dataLabel, not dataLabelSettings.TooltipRender when tooltip is visible.SmithchartLegend when legend is visible.dataBind() for ordinary data or property updates.refresh() only for complete rerender scenarios.smithchart.print() for printing.smithchart.export() for export.Print or ImageExport solely for public methods.Incorrect:
series: [
{
type: 'Impedance'
}
]
Correct:
renderType: 'Impedance'
Incorrect:
series: [
{
type: 'Impedance'
},
{
type: 'Admittance'
}
]
Use separate SmithChart instances.
Incorrect:
markerSettings: {
visible: true
}
Correct:
marker: {
visible: true
}
Incorrect:
dataLabelSettings: {
visible: true
}
Correct:
marker: {
dataLabel: {
visible: true
}
}
Incorrect:
SmithchartTooltip
Correct:
TooltipRender
Incorrect:
tooltip: {
enable: true
}
Correct:
series: [
{
tooltip: {
visible: true
}
}
]
Correct setup:
import {
Smithchart,
TooltipRender
} from '@syncfusion/ej2-charts';
Smithchart.Inject(
TooltipRender
);
Correct setup:
import {
Smithchart,
SmithchartLegend
} from '@syncfusion/ej2-charts';
Smithchart.Inject(
SmithchartLegend
);
Incorrect:
title:
'Network Analysis'
Correct:
title: {
text: 'Network Analysis',
visible: true
}
Incorrect for normalized impedance:
{
resistance: 0,
reactance: 0
}
Correct matched normalized impedance:
{
resistance: 1,
reactance: 0
}
Do not map raw reflection-coefficient values directly as normalized impedance.
Convert them first when impedance coordinates are required.
Do not assume this automatically renders custom text:
{
resistance: 1,
reactance: 0,
label: '2.4 GHz'
}
Use a validated data-label or tooltip template.
Do not copy every Chart marker shape into SmithChart without validation.
Prefer a validated shape such as:
shape: 'Circle'
shape: 'Rectangle'
shape: 'Triangle'
shape: 'Diamond'
Do not assume SmithChart data labels support:
position: 'Top'
alignment: 'Center'
Use the validated data-label model and connector lines.
Do not add dashArray to SmithChart axis gridlines unless the installed API has been explicitly validated for that property.
Do not add dashArray to SmithChart axis lines without validation.
Do not use:
Smithchart.Inject(
Print
);
Use:
smithchart.print();
Do not use:
Smithchart.Inject(
ImageExport
);
Use:
smithchart.export(
'PNG',
'smithchart'
);
Do not use:
smithchart.export(
'PNG',
'smithchart',
1200,
800
);
For a normal property update:
smithchart.series[0].points =
updatedData;
smithchart.dataBind();
Use refresh() only when a complete rerender is required.
Do not present fixed values such as 500 points or 10 series as SmithChart API limits.
Performance depends on:
Before returning a SmithChart solution, verify:
Smithchart uses the correct casing.@syncfusion/ej2-charts.ej.charts.Smithchart.appendTo(...).renderType is configured at root level.1 + j0.points.dataSource.marker.marker.dataLabel.TooltipRender is imported when required.TooltipRender is injected when required.SmithchartLegend is imported when required.SmithchartLegend is injected when required.horizontalAxis or radialAxis.dataBind().references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/axis-configuration.md (opens in a new tab)references/customization-and-legends.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/markers-and-labels.md (opens in a new tab)references/series-and-data.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