agentsclimarketplace

Syncfusion angular smith chart

Skill syncfusion/angular-ui-components-skills/skills/syncfusion-angular-smith-chart

Implement Syncfusion Angular Smith Chart component for high-frequency circuit visualization and transmission line analysis. Use this skill whenever the user needs to create smith charts, visualize impedance or admittance parameters, add multiple series to a smith chart, customize axes and gridlines, configure markers and data labels, implement legends with visibility toggling, add tooltips and export functionality, or styling and accessibility. Covers installation, basic rendering, series management, axis configuration, marker/label customization, legend setup and advanced features.From its SKILL.md

Install
npx -y skills add syncfusion/angular-ui-components-skills --skill syncfusion-angular-smith-chart

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

15.6 KB, ~3.5k tokens by cl100k_base, as published. Nobody here has run it

Implementing Syncfusion Angular Smith Chart Component

When to Use This Skill

Use this skill when you need to:

  • Visualize transmission lines - Plot impedance or admittance parameters on smith charts for circuit analysis
  • Create smith charts - Render smith chart components with proper configuration and data binding
  • Add multiple series - Display multiple transmission line series on a single chart
  • Customize axes - Configure horizontal and radial axes with custom labels, gridlines, and styling
  • Highlight data points - Add markers and data labels to emphasize key values
  • Display legends - Implement legends with positioning, alignment, and visibility toggling
  • Enable interactivity - Add tooltips, print functionality, and event handling
  • Style and theme - Apply Syncfusion themes, custom colors, and responsive sizing
  • Ensure accessibility - Support WCAG compliance, keyboard navigation, and RTL layouts

Component Overview

The Syncfusion Angular Smith Chart is a specialized data visualization component for high-frequency circuit applications. It uses two sets of concentric circles (constant resistance and reactance) to plot transmission line parameters for impedance and admittance analysis.

Key Characteristics:

  • Dual-axis system - Horizontal axis (straight line for resistance) and radial axis (circular path for reactance)
  • Render Types - Support for both Impedance (default) and Admittance parameters
  • Multi-series support - Display multiple transmission line series simultaneously with different colors and styles
  • Data binding - Two methods: points array or dataSource with resistance/reactance property mapping
  • Interactive elements - Markers, data labels, tooltips, legends with visibility toggle, and export functionality
  • Customizable styling - Axis labels, major/minor gridlines, colors, themes (Material, Bootstrap, Tailwind), responsive sizing
  • Accessibility features - WCAG compliance, keyboard navigation, RTL (right-to-left) support, screen reader compatibility
  • Event-driven - Load events, series rendering, legend interactions, and tooltip customization
  • Export capabilities - PNG, JPEG, SVG formats for reporting and documentation

Documentation and Navigation Guide

This skill guides you through implementing smith charts. Here are the key topics:

Getting Started

πŸ“„ Read: references/getting-started.md

  • Installation and package setup for Angular 19+
  • Basic smith chart component implementation
  • Module injection requirements
  • Data binding with resistance and rectangle values
  • CSS imports and theming
  • When to read: Before implementing your first smith chart

Series and Data Management

πŸ“„ Read: references/series-and-data.md

  • Understanding series concepts and data structure
  • Points vs dataSource for data input
  • Impedance and Admittance render types
  • Series customization (fill, opacity, width, visibility)
  • Multiple series examples and patterns
  • Smart labels and overlapping prevention
  • When to read: Bind data and configure multiple series

Axis Customization

πŸ“„ Read: references/axis-customization.md

  • Horizontal and radial axis configuration
  • Axis labels (positioning, intersection handling, styling)
  • Major and minor gridlines (visibility, width, dash patterns, opacity)
  • Axis line customization
  • Label and value formatting
  • When to read: Customize axis appearance and behavior

Markers and Data Labels

πŸ“„ Read: references/markers-and-labels.md

  • Marker configuration and visibility
  • Data label display and formatting
  • Positioning markers and labels without overlap
  • Custom label content (resistance, reactance values)
  • Formatting numeric values
  • When to read: Highlight specific data points or show detailed values

Legend and Interaction

πŸ“„ Read: references/legend-and-interaction.md

  • Legend visibility and positioning (top, bottom, left, right, custom)
  • Legend alignment and placement
  • Legend shape customization (circle, rectangle, triangle)
  • Legend sizing and responsiveness
  • Series visibility toggle with legend clicks
  • When to read: Add and configure legends for series identification

Advanced Features

πŸ“„ Read: references/advanced-features.md

  • Tooltip configuration and formatting
  • Print and export functionality
  • RTL (Right-to-Left) support
  • Theming and CSS customization
  • Container sizing and responsive behavior
  • WCAG accessibility compliance
  • Keyboard navigation
  • Event handling (click, hover, legend toggle)
  • When to read: Implement complex features like tooltips, export, events, or accessibility

Troubleshooting

πŸ“„ Read: references/troubleshooting.md

  • Common implementation issues and solutions
  • Data format validation and errors
  • Module import troubleshooting
  • Performance optimization tips
  • Chart rendering and display issues
  • When to read: Debug issues or optimize chart performance

Quick Start Example

Here's a minimal example to render a basic smith chart:

import { SmithchartModule } from '@syncfusion/ej2-angular-charts'
import { Component } from '@angular/core';

@Component({
  imports: [SmithchartModule],
  standalone: true,
  selector: 'app-container',
  template: `<ejs-smithchart 
    id='smithchart-container'
    [series]="series">
  </ejs-smithchart>`
})
export class AppComponent {
  series = [{
    points: [
      { resistance: 10, reactance: 10 },
      { resistance: 20, reactance: 15 },
      { resistance: 30, reactance: 5 },
      { resistance: 40, reactance: -5 },
      { resistance: 50, reactance: -15 }
    ]
  }]
}

Output: A basic smith chart with one series showing transmission line impedance values.

Common Patterns

Pattern 1: Multi-Series Transmission Line Comparison

Display multiple transmission line series with different colors for impedance comparison:

series = [
  {
    name: 'Transmission Line A',
    points: [
      { resistance: 0.2, reactance: 0.1 },
      { resistance: 0.5, reactance: 0.3 },
      { resistance: 1.0, reactance: 0.5 }
    ],
    fill: '#0066CC',
    marker: { visible: true },
    tooltip: { visible: true }
  },
  {
    name: 'Transmission Line B',
    points: [
      { resistance: 0.3, reactance: 0.15 },
      { resistance: 0.6, reactance: 0.4 },
      { resistance: 1.2, reactance: 0.6 }
    ],
    fill: '#FF6633',
    marker: { visible: true },
    tooltip: { visible: true }
  }
]

Pattern 2: Interactive Tooltips, Legends, and Markers

Enable legends for series identification, tooltips for detailed values, and markers to highlight data points:

@Component({
  template: `
    <ejs-smithchart [series]="series" [legendSettings]="legendSettings">
    </ejs-smithchart>
  `
})
export class AppComponent {
  series = [
    {
      name: 'Device A',
      marker: { 
        visible: true, 
        shape: 'Circle', 
        width: 8,
        height: 8,
        dataLabel: { visible: true }  // βœ“ dataLabel INSIDE marker
      },
      tooltip: { visible: true, template: 'R:${resistance}+jX:${reactance}' },
      points: [...]
    }
  ];

  legendSettings = { 
    visible: true, 
    position: 'Bottom',
    alignment: 'Center' 
  };
}

Pattern 3: Admittance Render Type with Axis Customization

Switch to Admittance rendering and customize axes with gridlines:

@Component({
  template: `
    <ejs-smithchart
      renderType: 'Admittance'
      [series]="series"
      [horizontalAxis]="hAxis"
      [radialAxis]="rAxis">
    </ejs-smithchart>
  `
})
export class AppComponent {
  series = [
    {
      points: [...],
    }
  ];

  hAxis = {
    labelPosition: 'Outside',
    majorGridLines: { visible: true, width: 1, opacity: 0.8 },
    minorGridLines: { visible: true, count: 4, opacity: 0.4 }
  };

  rAxis = {
    majorGridLines: { visible: true, width: 1, opacity: 0.8 },
    minorGridLines: { visible: true, count: 4, opacity: 0.4 }
  };
}

Pattern 4: Data-Driven Series from External Source

Bind series data from an array using dataSource property:

series = [
  {
    name: 'Test Results',
    dataSource: [
      { impedance: 50, phase: 0 },     // Will be mapped to resistance/reactance
      { impedance: 75, phase: 15 },
      { impedance: 100, phase: 30 }
    ],
    resistance: 'impedance',
    reactance: 'phase'
  }
];

Pattern 5: Export and Print Integration

Enable export and print functionality for documentation:

@Component({
  template: `
    <div>
      <button (click)="exportChart('PNG')">Export PNG</button>
      <button (click)="exportChart('SVG')">Export SVG</button>
      <button (click)="printChart()">Print</button>
    </div>
    <ejs-smithchart #smithchart [series]="series"></ejs-smithchart>
  `
})
export class AppComponent {
  @ViewChild('smithchart') smithchart!: any;

  exportChart(format: string) {
    this.smithchart.export(format, 'smith-chart-export');
  }

  printChart() {
    this.smithchart.print();
  }
}

## Import Best Practices

### βœ… Minimal Imports (Most Cases)

For basic smith charts without advanced features, import only what you need:

```typescript
import { SmithchartModule } from '@syncfusion/ej2-angular-charts'
import { Component, ViewEncapsulation } from '@angular/core'

@Component({
  imports: [SmithchartModule],  // βœ“ Only SmithchartModule needed
  standalone: true,
  encapsulation: ViewEncapsulation.None,
  template: `<ejs-smithchart [series]="series"></ejs-smithchart>`
})
export class AppComponent {
  series = [{ points: [...] }]
}

❌ Don't Import Unnecessary Modules

Avoid importing modules/services you're not using:

// βœ— WRONG - CommonModule not needed in standalone component
import { CommonModule } from '@angular/common'
@Component({
  imports: [SmithchartModule, CommonModule],  // CommonModule is unnecessary
  standalone: true
})

// βœ— WRONG - SmithchartLegendService not needed without custom legend events
import { SmithchartLegendService } from '@syncfusion/ej2-angular-charts'
@Component({
  providers: [SmithchartLegendService],  // Only for custom legend click handling
  standalone: true
})
export class AppComponent {
  legendSettings = { visible: true }  // Basic legend doesn't need the service
}

// βœ— WRONG - TooltipRenderService not needed without tooltips
import { TooltipRenderService } from '@syncfusion/ej2-angular-charts'
@Component({
  providers: [TooltipRenderService],  // Only needed if tooltip: { visible: true }
  standalone: true
})
export class AppComponent {
  series = [{ points: [...] }]  // No tooltip configuration
}

βœ… Add Services Only When Needed

Use CaseServiceImport
Basic chartNoneOnly SmithchartModule
With tooltipsTooltipRenderServiceAdd when using tooltip: { visible: true }
Advanced legend clicksSmithchartLegendServiceAdd when handling legend interaction events

Example: Tooltips Only When Used

import { SmithchartModule, TooltipRenderService } from '@syncfusion/ej2-angular-charts'

@Component({
  imports: [SmithchartModule],
  providers: [TooltipRenderService],  // βœ“ Add only if using tooltips
  standalone: true
})
export class AppComponent {
  series = [{
    points: [
      { resistance: 0.2, reactance: 0.1 },
      { resistance: 0.4, reactance: 0.3 }
    ],
    tooltip: { visible: true }  // βœ“ Tooltips are configured
  }]
}

Key Configuration Properties

PropertyTypeDefaultPurpose
seriesArray[]Array of series with points data for visualization
pointsArray-Data array for a series (resistance, reactance pairs)
dataSourceArray-Bind data from external source or data array
resistancestring-Property name for X-axis value (resistance) from dataSource
reactancestring-Property name for Y-axis value (reactance) from dataSource
namestring-Series name for legend display
renderTypestring'Impedance'Render type: 'Impedance' or 'Admittance'
fillstring-Series line color (hex or named color)
widthnumber2Series line width in pixels
opacitynumber1Series line opacity (0-1)
markerobject-Marker configuration (visible, shape, size)
dataLabelobject-Data label configuration (visible, format)
tooltipobject-Tooltip configuration (visible, format, template)
titleobject-Title configuration (text, visible, styling)
heightstring/number'400px'Chart height (px or percentage)
widthstring/number'100%'Chart width (px or percentage)
themestring'Material'Built-in theme (Material, Bootstrap, Tailwind, etc.)
legendSettingsobject-Legend configuration (visible, position, alignment)
horizontalAxisobject-Horizontal axis customization and labels
radialAxisobject-Radial axis customization and gridlines
enableRtlbooleanfalseEnable right-to-left text direction support
ariaLabelstring-Accessibility label for screen readers

Common Use Cases

  1. Circuit Analysis & Impedance Matching - Visualize impedance matching and transmission line characteristics for high-frequency circuits
  2. Network & Filter Tuning - Display multiple filter responses and network parameters for comparison and optimization
  3. Antenna Design & Optimization - Plot impedance curves for antenna tuning, SWR analysis, and frequency response visualization
  4. RF Engineering - Analyze reflection coefficients, standing wave patterns, and transmission line properties
  5. Microwave Engineering - Design and analyze transmission lines, waveguides, and microwave components
  6. Educational Content - Teach high-frequency circuit concepts with interactive charts and real-time parameter visualization
  7. Performance Dashboards - Monitor multiple transmission line metrics and network parameters in real-time
  8. Device Testing & Validation - Compare measured vs. simulated impedance data for device characterization
  9. Quality Control - Visualize production test results for electronic components on smith charts
  10. Signal Integrity Analysis - Analyze termination impedance and signal reflection for PCB design verification

API Reference

A complete API reference for the Syncfusion Angular Smithchart is available in the references folder. It includes property anchors, method links, and event argument types that map to the official docs.

Read the API reference: references/api-reference.md

Next Steps: Start with getting-started.md to install and render your first smith chart, then explore other reference guides based on your needs.

What ships with it: 8 files

85.4 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,871. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.