Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

syncfusion-react-smithchartsyncfusion React smithchart 开发

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

661

周安装

27

GitHub Stars

1

下载量

212
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-react-smithchart(syncfusion React smithchart 开发)
来源仓库:https://github.com/syncfusion/react-ui-components-skills
仓库路径:skills/syncfusion-react-smithchart
安装命令:
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-smithchart
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-smithchart

简介

用于辅助 React Smith Chart 图表的开发与维护。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中生成或审查开发相关代码。
  • 通过 GitHub 安装,需结合项目技术栈使用。
  • 涉及代码改动时应注意组件集成和依赖管理。
  • syncfusion-react-smithchart 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion React Smith Charts

A comprehensive skill for implementing and customizing Syncfusion React Smith Chart component. Smith Charts are specialized diagrams used in electrical engineering and RF design to visualize impedance, reflection coefficients, and transmission line parameters.

When to Use This Skill

Use this skill when you need to:

  • Visualize transmission line impedance and reflection data
  • Plot RF circuit parameters (S-parameters, impedance matching)
  • Display resistance and reactance relationships
  • Create interactive Smith Charts with markers and tooltips
  • Implement electrical engineering data visualizations
  • Configure Smith Chart axes (horizontal and radial)
  • Add legends, data labels, and annotations
  • Export Smith Charts for documentation or reports
  • Ensure accessibility compliance for technical charts

Component Overview

The Syncfusion React Smith Chart is a specialized charting component that:

  • Plots data points with resistance and reactance coordinates
  • Supports multiple series with customizable styling
  • Provides horizontal and radial axis configurations
  • Includes interactive features (tooltips, legends, markers)
  • Offers print and export capabilities (PNG, JPEG, SVG, PDF)
  • Ensures WCAG 2.2 accessibility compliance
  • Supports responsive sizing and theming

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Dependencies and package installation
  • Installing @syncfusion/ej2-react-charts via npm
  • Basic SmithchartComponent implementation
  • Module injection (SmithchartLegend, TooltipRender)
  • CSS theme imports and configuration
  • First render and initialization
  • Complete working example

Data and Series Configuration

📄 Read: references/series-configuration.md

  • Adding multiple series to Smith Chart
  • Two data binding methods (dataSource vs points)
  • Resistance and reactance field mapping
  • Series customization (fill, opacity, width, visibility)
  • Smart label configuration
  • Multi-series examples and patterns

Axis Configuration

📄 Read: references/axis-configuration.md

  • Horizontal axis (straight line) configuration
  • Radial axis (circular path) configuration
  • Label customization (position, intersection handling, styling)
  • Major and minor gridlines configuration
  • Axis line properties (width, dash patterns, visibility)
  • Complete axis customization examples

Visual Elements: Markers and Data Labels

📄 Read: references/markers-and-labels.md

  • Enabling and customizing markers on data points
  • Marker properties (size, shape, color, border, opacity)
  • Data label implementation and smart positioning
  • Data label styling (font, color, border)
  • Best practices for visual clarity

Legend Configuration

📄 Read: references/legend-configuration.md

  • Enabling legends with SmithchartLegend module
  • Positioning (top, bottom, left, right, custom)
  • Alignment options (near, center, far)
  • Legend customization (shape, size, padding)
  • Toggle visibility functionality
  • Series naming for legend display

Tooltips and Interactivity

📄 Read: references/tooltip-configuration.md

API Reference

📄 Read: references/api-reference.md

  • Enabling tooltips with TooltipRender module
  • Per-series tooltip configuration
  • Tooltip visibility and appearance
  • When to use tooltips vs data labels
  • Interactive hover behavior

Appearance and Sizing

📄 Read: references/dimensions-and-sizing.md

  • Container-based sizing (CSS/inline styles)
  • Fixed pixel dimensions
  • Percentage-based responsive sizing
  • Responsive design considerations
  • When to use each sizing approach

Title and Subtitle

📄 Read: references/title-and-subtitle.md

  • Adding descriptive titles to charts
  • Subtitle configuration
  • Title trimming for long text
  • Font and alignment customization
  • Visibility controls

Print, Export, and Accessibility

📄 Read: references/print-export-accessibility.md

  • Printing Smith Charts directly from browser
  • Exporting to multiple formats (PNG, JPEG, SVG, PDF)
  • WCAG 2.2 and Section 508 compliance
  • Keyboard navigation support
  • Screen reader compatibility
  • WAI-ARIA attributes
  • Accessibility testing and best practices

Quick Start Example

import * as React from 'react';
import { SmithchartComponent, SeriesCollectionDirective, SeriesDirective, Inject, SmithchartLegend, TooltipRender } from '@syncfusion/ej2-react-charts';

function App() {
  const transmissionData = [
    { resistance: 0, reactance: 0.05 },
    { resistance: 0, reactance: 0.1 },
    { resistance: 0, reactance: 0.2 },
    { resistance: 0.3, reactance: 0.3 },
    { resistance: 0.5, reactance: 0.4 },
    { resistance: 1.0, reactance: 0.5 }
  ];

  return (
    <SmithchartComponent
      id="smithchart"
      title={{ text: 'Transmission Line Impedance' }}
      legendSettings={{ visible: true }}
    >
      <Inject services={[SmithchartLegend, TooltipRender]} />
      <SmithChartSeriesCollectionDirective>
        <SmithChartSeriesDirective
          name="Transmission1"
          points={transmissionData}
          marker={{ visible: true }}
          tooltip={{ visible: true }}
        />
      </SeriesCollectionDirective>
    </SmithchartComponent>
  );
}

export default App;

Common Patterns

Multiple Series with DataSource

const series1Data = [
  { resistance: 0, reactance: 0.05 },
  { resistance: 0.3, reactance: 0.2 },
  { resistance: 1.0, reactance: 0.4 }
];

const series2Data = [
  { resistance: 0.1, reactance: 0.1 },
  { resistance: 0.5, reactance: 0.3 },
  { resistance: 1.5, reactance: 0.5 }
];

<SmithchartComponent legendSettings={{ visible: true }}>
  <Inject services={[SmithchartLegend]} />
  <SmithChartSeriesCollectionDirective>
    <SmithChartSeriesDirective
      name="Line 1"
      dataSource={series1Data}
      resistance="resistance"
      reactance="reactance"
      fill="blue"
    />
    <SmithChartSeriesDirective
      name="Line 2"
      dataSource={series2Data}
      resistance="resistance"
      reactance="reactance"
      fill="red"
    />
  </SeriesCollectionDirective>
</SmithchartComponent>

Customized Markers and Labels

<SmithChartSeriesDirective
  name="Impedance Data"
  points={data}
  marker={{
    visible: true,
    height: 10,
    width: 10,
    shape: 'Diamond',
    fill: 'green',
    dataLabel: {
      visible: true,
      textStyle: { color: 'black', size: '10px' }
    }
  }}
/>

Export to Image

import { useRef } from 'react';

function ChartWithExport() {
  const chartRef = useRef(null);

  const exportChart = () => {
    chartRef.current.export('PNG', 'smithchart');
  };

  return (
    <>
      <button onClick={exportChart}>Export as PNG</button>
      <SmithchartComponent ref={chartRef} id="smithchart">
        {/* series configuration */}
      </SmithchartComponent>
    </>
  );
}

Key Props and Features

SmithchartComponent Props

PropertyTypeDescription
idstringUnique identifier for the component
titleobjectTitle configuration with text and styling
legendSettingsobjectLegend visibility, position, and styling
widthstringChart width (pixels or percentage)
heightstringChart height (pixels or percentage)
horizontalAxisobjectHorizontal axis configuration
radialAxisobjectRadial axis configuration

SeriesDirective Props

PropertyTypeDescription
namestringSeries name for legend display
pointsarrayArray of {resistance, reactance} objects
dataSourcearrayData array with custom field mapping
resistancestringField name for resistance values
reactancestringField name for reactance values
fillstringSeries line color
widthnumberSeries line width
opacitynumberSeries line opacity (0-1)
markerobjectMarker configuration
tooltipobjectTooltip configuration
enableSmartLabelsbooleanSmart label positioning

Required Module Injections

import { SmithchartLegend, TooltipRender } from '@syncfusion/ej2-react-charts';

<Inject services={[SmithchartLegend, TooltipRender]} />
  • SmithchartLegend: Required for legend functionality
  • TooltipRender: Required for tooltip display

Troubleshooting Guide

Chart Not Rendering

  • Verify @syncfusion/ej2-react-charts package is installed
  • Ensure CSS theme is imported in your app
  • Check that data has valid resistance and reactance fields
  • Confirm container has defined dimensions

Legend Not Showing

  • Verify legendSettings.visible is set to true
  • Ensure SmithchartLegend module is injected
  • Check that series have name property defined

Tooltips Not Working

  • Confirm TooltipRender module is injected
  • Verify tooltip.visible is true on series
  • Check that mouse hover events are enabled

Data Not Displaying

  • Validate data format: array of objects with resistance/reactance
  • Check field names match dataSource property configuration
  • Ensure numeric values are valid (not NaN or undefined)
  • Verify series visibility is not set to false

Export Fails

  • Confirm chart has a valid id property
  • Check export format is supported (PNG, JPEG, SVG, PDF)
  • Ensure export method is called on mounted component reference

Styling Issues

  • Import correct Syncfusion theme CSS file
  • Check that custom styles don't conflict with component classes
  • Verify width/height properties are properly formatted
  • Ensure container styling allows chart to render

Additional Resources

All detailed documentation is available in the reference files above. Each reference file is self-contained with complete examples, configuration options, and best practices specific to that feature area.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.45%
按下载量换算79

Claude

31.71%
按下载量换算67

Cursor

17.26%
按下载量换算37

Gemini CLI

9.72%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills