Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-pivot-chartSynfusion Winforms 数据透视图

Agent Skill

syncfusion-winforms-pivot-chart 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

685

周安装

28

GitHub Stars

公开资料未说明

下载量

220
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-pivot-chart

简介

Syncfusion WinForms 数据透视图控件,用于在 Windows 窗体应用中创建交互式数据透视图表。

  • 适用于数据分析、报表展示和可视化场景,支持多维数据汇总与动态图表生成。
  • 通过拖拽字段配置行列、值及筛选条件,实时更新图表展现数据关系与趋势。
  • 需确认项目是否引用 Syncfusion 组件库,并检查许可证有效性及相关依赖安装。
  • 注意数据源格式兼容性,避免在高频刷新或大数据量下影响界面响应性能。

SKILL.md

Implementing Syncfusion Pivot Chart

A comprehensive guide for implementing the Syncfusion Pivot Chart control in Windows Forms applications. The Pivot Chart provides interactive visualization of multidimensional pivot data with drill-down capabilities, supporting 11+ chart types and advanced features like grouping bar, field list, and Excel export.

When to Use This Skill

Use this skill when you need to:

  • Visualize pivot data in graphical format with multiple chart types
  • Implement drill-down/drill-up functionality to navigate through hierarchical data levels
  • Create business intelligence dashboards with interactive pivot visualizations
  • Analyze multidimensional data from IEnumerable lists or DataTables
  • Build OLAP visualization interfaces for analytical applications
  • Add interactive data exploration with grouping bar and pivot field list
  • Export pivot charts to Excel format for reporting
  • Display hierarchical sales, financial, or analytical data in chart format
  • Implement Excel-like pivot chart functionality in Windows Forms applications
  • Create dynamic charts that update based on pivot field selections

Component Overview

The Syncfusion Pivot Chart is a lightweight, high-performance control that reads pivot information and visualizes it in graphical format. It provides:

  • 11+ Chart Types: Line, Spline, Column, Area, Spline Area, Stacking Area, Stacking Column, Stacking Area 100, Stacking Column 100, Step Line, Step Area
  • Drill Support: Navigate through inner levels of data hierarchy with drill-down/drill-up
  • Data Binding: Support for IEnumerable lists and DataTable sources
  • Pivot Table Field List: Built-in pivot schema designer similar to Microsoft Excel
  • Grouping Bar: Interactive drag-and-drop grouping of data fields
  • Legend: Color-coded series identification
  • Export: Export to Excel format
  • Zooming and Scrolling: Interactive data exploration
  • Touch Support: Touch-friendly for tablets and touch-enabled devices
  • Real-time Updates: Automatic chart updates when data changes

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and dependencies
  • Adding control via designer, code, or Syncfusion Reference Manager
  • Licensing requirements (v16.2.0.x+)
  • Basic initialization and first data binding
  • ItemSource, PivotAxis, PivotLegend, and PivotCalculations setup

Data Binding

📄 Read: references/data-binding.md

  • Binding IEnumerable lists and DataTable sources
  • Configuring ItemSource property
  • Setting up PivotAxis for hierarchical data
  • Configuring PivotLegend for series categorization
  • Setting up PivotCalculations for data aggregation
  • Real-time updates with EnableUpdating
  • Performance optimization with BeginUpdate/EndUpdate

Chart Types

📄 Read: references/chart-types.md

  • Overview of 11 supported chart types
  • Line, Spline, Step Line charts
  • Column and Stacking Column charts
  • Area, Spline Area, Step Area charts
  • Stacking Area and Stacking Column (100%) charts
  • Switching chart types dynamically
  • ChartTypes enumeration
  • Choosing appropriate chart type for your data

Drill Operations

📄 Read: references/drill-operations.md

  • Enabling drill-down/drill-up functionality
  • AllowDrillDown property configuration
  • Navigating through hierarchical data levels
  • Using expanders for drill operations
  • Programmatic drill operations
  • User interactions and drill events

Grouping Bar

📄 Read: references/grouping-bar.md

  • Enabling and configuring grouping bar
  • Interactive drag-and-drop field grouping
  • Field manipulation and rearrangement
  • Visibility and customization options
  • User interactions with grouping bar

Pivot Axis Configuration

📄 Read: references/pivot-axis.md

  • Understanding PivotAxis property
  • Adding PivotItem objects to axis
  • FieldMappingName for data field binding
  • TotalHeader for aggregate displays
  • Multiple axis items for hierarchical structure
  • Axis customization options

Pivot Table Field List

📄 Read: references/pivot-table-field-list.md

  • Built-in pivot schema designer
  • Microsoft Excel-like field list interface
  • Enabling and displaying field list
  • Drag-and-drop field configuration
  • Filter setup and management
  • Calculation field configuration
  • User interactions with field list

Legend

📄 Read: references/legend.md

  • Configuring PivotLegend property
  • Color coding for series identification
  • Legend positioning and layout
  • Visibility and customization options
  • Series labels and formatting

Sorting

📄 Read: references/sorting.md

  • Sorting pivot data in charts
  • Ascending and descending sort orders
  • Multiple field sorting and Custom sort logic
  • Sort configuration options

Export

📄 Read: references/export.md

  • Exporting pivot charts to Excel
  • Export configuration and options
  • File format settings
  • Programmatic export operations
  • Customizing exported output

Zooming and Scrolling

📄 Read: references/zooming-scrolling.md

  • Interactive zoom functionality
  • Scroll support for large datasets and Mouse wheel zoom operations
  • Zoom configuration and customization
  • Scrollbar appearance and behavior

Touch Support

📄 Read: references/touch-support.md

  • Touch gesture support for tablets
  • Touch interactions (tap, swipe, pinch)
  • Optimizing for touch-enabled devices
  • Touch gesture configuration
  • Mobile and tablet considerations

Appearance and Customization

📄 Read: references/appearance-customization.md

  • Chart area customization
  • Series styling and colors and Color palette configuration
  • Print support and settings
  • Custom styling options

Troubleshooting

📄 Read: references/troubleshooting.md

  • Common issues and solutions
  • Data binding errors and fixes
  • Performance optimization tips
  • How to enable drill-down and to print the pivot chart
  • How to set custom color palettes, debugging and diagnostic tips

Quick Start Example

Minimal Pivot Chart Implementation

using System;
using System.Windows.Forms;
using Syncfusion.Windows.Forms.PivotChart;
using Syncfusion.PivotAnalysis.Base;

namespace PivotChartDemo
{
    public partial class Form1 : Form
    {
        private PivotChart pivotChart1;

        public Form1()
        {
            InitializeComponent();

            // Initialize Pivot Chart
            pivotChart1 = new PivotChart();
            pivotChart1.Dock = DockStyle.Fill;

            // Bind data source
            pivotChart1.ItemSource = ProductSales.GetSalesData();

            // Configure Pivot Axis (hierarchical structure)
            pivotChart1.PivotAxis.Add(new PivotItem
            {
                FieldMappingName = "Product",
                TotalHeader = "Total"
            });
            pivotChart1.PivotAxis.Add(new PivotItem
            {
                FieldMappingName = "Country",
                TotalHeader = "Total"
            });
            pivotChart1.PivotAxis.Add(new PivotItem
            {
                FieldMappingName = "State",
                TotalHeader = "Total"
            });

            // Configure Pivot Legend (series categorization)
            pivotChart1.PivotLegend.Add(new PivotItem
            {
                FieldMappingName = "Date",
                TotalHeader = "Total"
            });

            // Configure Calculations (data aggregation)
            pivotChart1.PivotCalculations.Add(new PivotComputationInfo
            {
                FieldName = "Quantity",
                Format = "#,##0"
            });

            // Set chart type
            pivotChart1.ChartTypes = PivotChartTypes.Column;

            // Enable drill-down
            pivotChart1.AllowDrillDown = true;

            // Add to form
            this.Controls.Add(pivotChart1);
        }
    }
}

Common Patterns

Pattern 1: Binding to IEnumerable Collection

using System.Collections.Generic;

// Data model
public class SalesData
{
    public string Product { get; set; }
    public string Region { get; set; }
    public string Quarter { get; set; }
    public int Quantity { get; set; }
    public decimal Amount { get; set; }
}

// Create and bind data
private void BindPivotChart()
{
    List<SalesData> salesList = new List<SalesData>
    {
        new SalesData { Product = "Laptop", Region = "North", Quarter = "Q1", Quantity = 50, Amount = 50000 },
        new SalesData { Product = "Laptop", Region = "South", Quarter = "Q1", Quantity = 40, Amount = 40000 },
        new SalesData { Product = "Mouse", Region = "North", Quarter = "Q1", Quantity = 200, Amount = 6000 },
        // Add more data...
    };

    pivotChart1.ItemSource = salesList;

    // Configure fields
    pivotChart1.PivotAxis.Add(new PivotItem { FieldMappingName = "Product", TotalHeader = "Total" });
    pivotChart1.PivotLegend.Add(new PivotItem { FieldMappingName = "Quarter", TotalHeader = "Total" });
    pivotChart1.PivotCalculations.Add(new PivotComputationInfo
    {
        FieldName = "Amount",
        Format = "C",
        SummaryType = SummaryType.DoubleTotalSum
    });
}

Pattern 2: Switching Chart Types Dynamically

// Add buttons or menu items to switch chart types
private void btnLineChart_Click(object sender, EventArgs e)
{
    pivotChart1.ChartTypes = PivotChartTypes.Line;
}

private void btnColumnChart_Click(object sender, EventArgs e)
{
    pivotChart1.ChartTypes = PivotChartTypes.Column;
}

private void btnAreaChart_Click(object sender, EventArgs e)
{
    pivotChart1.ChartTypes = PivotChartTypes.Area;
}

private void btnStackingColumn_Click(object sender, EventArgs e)
{
    pivotChart1.ChartTypes = PivotChartTypes.StackingColumn;
}

Pattern 3: Hierarchical Drill-Down Configuration

// Enable drill-down with multiple hierarchy levels
private void ConfigureDrillDown()
{
    pivotChart1.AllowDrillDown = true;

    // Define hierarchy: Category → Product → Region → State
    pivotChart1.PivotAxis.Clear();
    pivotChart1.PivotAxis.Add(new PivotItem
    {
        FieldMappingName = "Category",
        TotalHeader = "All Categories"
    });
    pivotChart1.PivotAxis.Add(new PivotItem
    {
        FieldMappingName = "Product",
        TotalHeader = "All Products"
    });
    pivotChart1.PivotAxis.Add(new PivotItem
    {
        FieldMappingName = "Region",
        TotalHeader = "All Regions"
    });
    pivotChart1.PivotAxis.Add(new PivotItem
    {
        FieldMappingName = "State",
        TotalHeader = "All States"
    });
}

Pattern 4: Real-Time Data Updates

// Enable automatic updates when data changes
private void ConfigureRealTimeUpdates()
{
    // Enable automatic chart updates
    pivotChart1.EnableUpdating = true;

    // Bind to observable collection or implement INotifyPropertyChanged
    var salesData = new BindingList<SalesData>(GetSalesData());
    pivotChart1.ItemSource = salesData;

    // Now any changes to salesData will automatically update the chart
}

// For bulk updates, use BeginUpdate/EndUpdate
private void BulkDataUpdate()
{
    pivotChart1.BeginUpdate();

    try
    {
        // Perform multiple data operations
        var data = (BindingList<SalesData>)pivotChart1.ItemSource;
        for (int i = 0; i < 100; i++)
        {
            data.Add(new SalesData { /* ... */ });
        }
    }
    finally
    {
        pivotChart1.EndUpdate(); // Chart updates once after all changes
    }
}

Pattern 5: Multiple Calculations with Formatting

// Display multiple aggregated values with custom formatting
private void ConfigureMultipleCalculations()
{
    pivotChart1.PivotCalculations.Clear();

    // Total quantity
    pivotChart1.PivotCalculations.Add(new PivotComputationInfo
    {
        FieldName = "Quantity",
        Format = "#,##0",
        SummaryType = SummaryType.DoubleTotalSum,
        FieldHeader = "Total Qty"
    });

    // Total amount (currency)
    pivotChart1.PivotCalculations.Add(new PivotComputationInfo
    {
        FieldName = "Amount",
        Format = "C2",
        SummaryType = SummaryType.DoubleTotalSum,
        FieldHeader = "Total Amount"
    });

    // Average price
    pivotChart1.PivotCalculations.Add(new PivotComputationInfo
    {
        FieldName = "UnitPrice",
        Format = "C2",
        SummaryType = SummaryType.DoubleAverage,
        FieldHeader = "Avg Price"
    });
}

Key Properties and Methods

Core Properties

PropertyTypeDescription
ItemSourceobjectData source (IEnumerable or DataTable)
PivotAxisPivotItemCollectionFields for chart axis (hierarchical)
PivotLegendPivotItemCollectionFields for legend/series
PivotCalculationsPivotComputationInfoCollectionCalculation/aggregation fields
ChartTypesPivotChartTypesChart type (Line, Column, Area, etc.)
AllowDrillDownboolEnable drill-down/drill-up operations
EnableUpdatingboolAuto-update when data changes

PivotItem Properties

PropertyTypeDescription
FieldMappingNamestringName of data field to bind
TotalHeaderstringHeader text for total/aggregate row
FieldHeaderstringDisplay header for the field

PivotComputationInfo Properties

PropertyTypeDescription
FieldNamestringName of field to calculate
FormatstringNumber format string
SummaryTypeSummaryTypeAggregation type (Sum, Average, Count, etc.)
FieldHeaderstringDisplay name for calculation

Key Methods

MethodDescription
BeginUpdate()Suspend chart updates for bulk operations
EndUpdate()Resume chart updates and refresh
Refresh()Manually refresh the chart

Common Use Cases

Business Intelligence Dashboard

  • Visualize sales data by product, region, and time period
  • Drill down from yearly to quarterly to monthly views
  • Compare multiple metrics (quantity, revenue, profit)

Financial Analysis

  • Display financial data across departments, periods, and categories
  • Analyze budget vs. actual spending with hierarchical drill-down
  • Visualize profit/loss trends across business units

Marketing Analytics

  • Analyze campaign performance by channel, region, and time period
  • Compare multiple KPIs (impressions, clicks, conversions)
  • Drill down from campaign level to ad group level

Performance Considerations

  1. Use BeginUpdate/EndUpdate for bulk data operations to prevent multiple redraws
  2. Limit hierarchy depth - 3-4 levels is optimal for performance and usability
  3. Filter data before binding rather than binding entire dataset
  4. Consider data volume - for very large datasets (100k+ rows), pre-aggregate data

Best Practices

  1. Always register license key before creating pivot chart control
  2. Define clear hierarchy in PivotAxis for intuitive drill-down
  3. Use descriptive TotalHeader values for better user understanding
  4. Format calculations appropriately (currency, percentages, numbers)
  5. Enable drill-down only if data has meaningful hierarchical structure
  6. Use grouping bar or field list for interactive user exploration

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.98%
按下载量换算84

Claude

31.15%
按下载量换算69

Cursor

17.6%
按下载量换算39

Gemini CLI

9.54%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills