Syncfusion React Circular Gauge

syncfusion/react-ui-components-skills/skills/syncfusion-react-circular-gauge

作者 syncfusion6fb1c883a8412b611b95f839e0cb06e1fc8170a8無授權條款收錄於 2026年10月9日更新於 2026年10月9日

Implement Syncfusion React Circular Gauge for displaying KPIs, sensor data, speedometers, and real-time monitoring dashboards. Use this skill when users need to visualize quantitative measurements on a circular scale. Covers axes, pointers, ranges, customization, animations, print/export, accessibility, and internationalization.

AI 產生的概覽

指導使用 Syncfusion React Circular Gauge 元件實作圓形儀表、KPI 與感測器資料視覺化。

功能
此技能提供使用 Syncfusion React Circular Gauge 元件建立圓形儀表視覺化的說明與參考資料。內容涵蓋安裝設定、座標軸、指針、範圍、外觀、註解、圖例、動畫、列印與匯出、無障礙與國際化。產出的是設定指引與程式碼範例,而非執行指令碼。
適用情境
當需要在圓形刻度上呈現量測值時使用,例如速度表、溫度或油量指示器、KPI 儀表板、進度百分比或即時感測器監控。也適合自訂儀表外觀、加入互動,或讓儀表支援無障礙與在地化。
執行需求
需要 @syncfusion/ej2-react-circulargauge npm 套件以及 React 專案(Vite 或 Create React App)。不隨附指令碼,僅為說明與參考文件。

Implementing Syncfusion React Circular Gauge

When to Use This Skill

Use the Circular Gauge component when you need to:

  • Display measurements on a circular scale (speedometers, temperature gauges, fuel indicators)
  • Monitor KPIs and metrics in dashboards (business metrics, sensor readings)
  • Visualize progress or percentages in a circular format
  • Show real-time data with animated pointer updates
  • Create responsive data visualizations with multiple pointers and ranges
  • Print or export gauge visualizations for reports

The Circular Gauge is ideal for applications requiring visual representation of values on a circular scale with customizable appearance, animations, and interactivity.


Component Overview

Syncfusion React Circular Gauge (@syncfusion/ej2-react-circulargauge) is a data visualization component that displays values on a circular scale. It consists of:

  • Axes - The circular scale tracks with customizable angles, direction, and styling
  • Pointers - Value indicators in three types: Needle (default), RangeBar, or Marker
  • Ranges - Colored segments representing value ranges (e.g., 0-25%, 25-50%)
  • Annotations - Text or image overlays for labels and callouts
  • Legend - Optional legend displaying range meanings
  • Export - Print, PDF, PNG, or SVG export capabilities

Documentation and Navigation Guide

Choose the reference based on what you need to implement:

Getting Started & Setup

📄 Read: references/getting-started.md [blocked]

  • Install @syncfusion/ej2-react-circulargauge package
  • Setup in Vite or Create React App
  • Basic component initialization
  • Minimal working example
  • CSS imports and themes
  • When to read: First time setup or new project integration

Gauge Structure: Axes, Pointers & Ranges

📄 Read: references/axes-pointers-ranges.md [blocked]

  • Configure axes (angles, direction, styling)
  • Add and customize pointers (Needle, RangeBar, Marker types)
  • Define ranges with colors and labels
  • Multiple axes and pointers
  • When to read: Building the core gauge structure and data visualization

Visual Appearance & Dimensions

📄 Read: references/appearance-dimensions.md [blocked]

  • Add titles and customize styling
  • Position gauge (centerX, centerY)
  • Set dimensions (width, height, margin)
  • Apply backgrounds, borders, color schemes
  • Responsive design
  • When to read: Customizing gauge look, sizing, and layout

Annotations & Legend

📄 Read: references/annotations-legend.md [blocked]

  • Add text annotations
  • Add image annotations
  • Position annotations
  • Display and customize legend
  • Handle legend interactions
  • When to read: Adding labels, callouts, or explanatory elements

Advanced Features

📄 Read: references/advanced-features.md [blocked]

  • Animation effects and timing
  • User interaction (events, tooltips)
  • Print and export to PDF/PNG/SVG
  • Real-time data binding
  • Multiple gauge instances
  • When to read: Adding interactions, animations, or export functionality

API Reference

📄 Read: references/api-reference.md [blocked]

  • Component props, events, methods, and child directive reference
  • Quick lookup for commonly used props, methods and event args
  • When to read: When you need exact API names, types or method signatures

Accessibility & Internationalization

📄 Read: references/accessibility-i18n.md [blocked]

  • WCAG 2.1 compliance and ARIA support
  • Screen reader compatibility
  • Keyboard navigation
  • RTL language support
  • Localization and culture settings
  • When to read: Making gauges accessible or supporting multiple languages

Common Patterns & Use Cases

📄 Read: references/common-patterns.md [blocked]

  • Speedometer pattern
  • Progress/percentage gauge pattern
  • Temperature/sensor monitoring
  • Multi-pointer dashboards
  • Real-time updates with animations
  • Performance tips and troubleshooting
  • When to read: Looking for common implementations or solving issues

Quick Start Example

Here's a minimal working example to get started:

tsx
import React from 'react';import { CircularGaugeComponent, AxesDirective, AxisDirective,          PointersDirective, PointerDirective, RangesDirective, RangeDirective }   from '@syncfusion/ej2-react-circulargauge';
export function App() {  return (    <div style={{ height: '500px' }}>      <CircularGaugeComponent         title="Speedometer"        centerX="50%"        centerY="50%"      >        <AxesDirective>          <AxisDirective             startAngle={270}             endAngle={90}            minimum={0}            maximum={100}          >            <RangesDirective>              <RangeDirective start={0} end={30} color='#1E7145' />              <RangeDirective start={30} end={60} color='#F7D900' />              <RangeDirective start={60} end={100} color='#C1192B' />            </RangesDirective>                        <PointersDirective>              <PointerDirective                 value={65}                 type='Needle'                radius='70%'              />            </PointersDirective>          </AxisDirective>        </AxesDirective>      </CircularGaugeComponent>    </div>  );}

Install the package first:

bash
npm install @syncfusion/ej2-react-circulargauge --save

Common Patterns

Pattern 1: Simple Progress Indicator

tsx
<CircularGaugeComponent>  <AxesDirective>    <AxisDirective minimum={0} maximum={100}>      <RangesDirective>        <RangeDirective start={0} end={50} color='#E8E8E8' />        <RangeDirective start={50} end={100} color='#4CAF50' />      </RangesDirective>      <PointersDirective>        <PointerDirective value={75} type='RangeBar' />      </PointersDirective>    </AxisDirective>  </AxesDirective></CircularGaugeComponent>

Pattern 2: Multi-Pointer Dashboard

Use multiple pointers on the same axis to compare values:

tsx
<PointersDirective>  <PointerDirective value={45} type='Needle' />  <PointerDirective value={60} type='Marker' /></PointersDirective>

Pattern 3: Real-Time Updates

tsx
const [value, setValue] = useState(50);
// Update pointer value on intervaluseEffect(() => {  const timer = setInterval(() => {    setValue(prev => (prev + Math.random() * 10) % 100);  }, 1000);  return () => clearInterval(timer);}, []);
// Bind value to pointer<PointerDirective value={value} />

Key Configuration Props

PropTypePurpose
titlestringGauge title displayed at top
centerX / centerYstringPosition (% or px)
startAngle / endAnglenumberAxis sweep degrees (0-360)
minimum / maximumnumberAxis scale range
value (pointer)numberCurrent pointer value
type (pointer)'Needle' | 'RangeBar' | 'Marker'Pointer visualization type
radius (pointer)stringPointer length (% or px)
colorstringElement color (hex, rgb, name)
direction'ClockWise' | 'AntiClockWise'Axis direction
animationDurationnumberAnimation time in milliseconds

For the complete API listing (all component props, events, methods and child directives) see: references/api-reference.md [blocked]

Common Use Cases

  1. Speedometer/Speed Monitor - Display vehicle speed with colored ranges
  2. Temperature Gauge - Monitor temperature with hot/cold indicators
  3. Performance KPI - Show system metrics or business KPIs
  4. Fuel/Battery Level - Visualize resource consumption
  5. Network Traffic - Display bandwidth usage in real-time
  6. Sports/Gaming Scores - Show player stats or game progress
  7. Industrial Monitoring - Sensor data visualization
  8. Percentage/Progress - Alternative circular progress visualization

Next Steps

  1. Start with Getting Started to set up your first gauge
  2. Build structure using Axes, Pointers & Ranges reference
  3. Customize appearance with styling reference
  4. Add interactions with Advanced Features reference
  5. Test accessibility using Accessibility reference
  6. Reference common patterns for implementation ideas

For more details or advanced scenarios, consult the specific reference files linked above.

來源與署名

來源:syncfusion/react-ui-components-skills位於skills/syncfusion-react-circular-gauge提交6fb1c88

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架