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

syncfusion-winui-pyramid-chartSynfusion WinUI 金字塔图

Agent Skill

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

总安装

535

周安装

23

GitHub Stars

公开资料未说明

下载量

188
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

Synfusion WinUI 金字塔图组件,用于层级结构数据的可视化呈现。

  • 适用于前端图表设计与信息架构展示,兼容 Codex、Claude 等宿主。
  • 通过 GitHub 仓库安装,遵循标准技能添加流程。
  • 使用前应核实是否包含自动更新或远程资源加载行为。
  • 建议参考原始文档了解数据绑定方式与动画效果配置。

SKILL.md

Implementing Syncfusion WinUI Pyramid Charts

The Syncfusion WinUI Pyramid Chart (SfPyramidChart) is a specialized control for visualizing proportions of a total in hierarchies. It displays data in a pyramid structure where each segment represents a data point, making it ideal for showing hierarchical relationships and proportional comparisons.

When to Use This Skill

Use this skill when the user needs to:

  • Create pyramid visualizations - Display hierarchical or proportional data in a pyramid structure
  • Set up WinUI pyramid charts - Install, configure, and initialize SfPyramidChart controls
  • Bind data to pyramid charts - Configure ItemsSource, XBindingPath, YBindingPath for data binding
  • Customize appearance - Apply colors, palettes, gradients, or custom styling to pyramid segments
  • Add interactivity - Enable tooltips, selection, or exploding segments for user interaction
  • Configure legends - Add and customize chart legends with icons, titles, and placement
  • Display data labels - Show values or labels on pyramid segments
  • Advanced customization - Configure titles, segment spacing, rendering modes, or templates

Component Overview

The SfPyramidChart control provides:

  • Hierarchical visualization - Pyramid-shaped display for proportional data
  • Rich data binding - XAML and code-behind data binding support
  • Interactive features - Tooltips, selection, exploding segments
  • Extensive customization - Palettes, gradients, templates, and styling
  • Legend support - Configurable legends with multiple placement options
  • Accessibility - Built-in support for keyboard navigation and screen readers

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When you need:

  • Installation and NuGet package setup (Syncfusion.Chart.WinUI)
  • Namespace imports (Syncfusion.UI.Xaml.Charts)
  • Basic SfPyramidChart initialization in XAML or C#
  • Creating view models and data binding patterns
  • Complete working example with ItemsSource, XBindingPath, YBindingPath
  • First pyramid chart implementation

Appearance and Styling

📄 Read: references/appearance.md

When you need:

  • Predefined palette brushes
  • Custom PaletteBrushes configuration
  • Applying linear or radial gradients to segments
  • Color customization and visual styling
  • Creating attractive color schemes

Legend Configuration

📄 Read: references/legend.md

When you need:

  • Enabling and positioning ChartLegend
  • Adding legend titles (Header property)
  • Customizing legend icons (size, visibility)
  • Configuring item spacing and layout
  • Adding checkboxes to legend items
  • Implementing toggle series visibility
  • Customizing legend background and borders
  • Creating custom legend templates

Data Labels

📄 Read: references/data-labels.md

When you need:

  • Enabling data labels on pyramid segments
  • Positioning and formatting labels
  • Creating custom label templates
  • Smart label placement strategies
  • Label visibility and styling

Tooltips

📄 Read: references/tooltip.md

When you need:

  • Enabling tooltips (EnableTooltip property)
  • Customizing tooltip appearance
  • Creating custom tooltip templates
  • Formatting tooltip content
  • Interactive tooltip behavior

Selection

📄 Read: references/selection.md

When you need:

  • Enabling segment selection
  • Configuring selection modes
  • Handling selection events
  • Visual feedback for selected segments
  • Multi-selection scenarios

Exploding Segments

📄 Read: references/exploding-segments.md

When you need:

  • Exploding segments on touch/click
  • Programmatic segment explosion
  • Configuring ExplodeIndex property
  • Setting ExplodeRadius for explosion distance
  • Animation and visual effects for exploded segments

Advanced Features

📄 Read: references/advanced-features.md

When you need:

  • Adding chart titles and headers
  • Configuring segment spacing (GapRatio)
  • Setting rendering modes
  • Adjusting pyramid height and mode properties
  • Performance optimization
  • Advanced customization scenarios

Quick Start Example

Basic Pyramid Chart Implementation

XAML:

<Window
    x:Class="PyramidChartApp.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="using:Syncfusion.UI.Xaml.Charts"
    xmlns:local="using:PyramidChartApp">

    <chart:SfPyramidChart x:Name="chart"
                          Header="Food Nutrition Pyramid"
                          ItemsSource="{Binding Data}"
                          XBindingPath="FoodName"
                          YBindingPath="Calories"
                          EnableTooltip="True"
                          ShowDataLabels="True">

        <chart:SfPyramidChart.DataContext>
            <local:ChartViewModel/>
        </chart:SfPyramidChart.DataContext>

        <chart:SfPyramidChart.Legend>
            <chart:ChartLegend/>
        </chart:SfPyramidChart.Legend>

    </chart:SfPyramidChart>
</Window>

View Model (C#):

public class Model
{
    public string FoodName { get; set; }
    public double Calories { get; set; }
}

public class ChartViewModel
{
    public List<Model> Data { get; set; }

    public ChartViewModel()
    {
        Data = new List<Model>()
        {
            new Model { FoodName = "Sweet treats", Calories = 250 },
            new Model { FoodName = "Cheese", Calories = 402 },
            new Model { FoodName = "Vegetables", Calories = 65 },
            new Model { FoodName = "Fish", Calories = 206 },
            new Model { FoodName = "Fruits", Calories = 52 },
            new Model { FoodName = "Rice", Calories = 130 }
        };
    }
}

Code-Behind (C#):

using Syncfusion.UI.Xaml.Charts;
using Microsoft.UI.Xaml;

public sealed partial class MainWindow : Window
{
    public MainWindow()
    {
        this.InitializeComponent();

        // Alternative: Create chart programmatically
        SfPyramidChart chart = new SfPyramidChart();
        ChartViewModel viewModel = new ChartViewModel();
        chart.DataContext = viewModel;
        chart.SetBinding(SfPyramidChart.ItemsSourceProperty,
            new Binding() { Path = new PropertyPath("Data") });
        chart.XBindingPath = "FoodName";
        chart.YBindingPath = "Calories";
        chart.Header = "Food Nutrition Pyramid";
        chart.Legend = new ChartLegend();
        chart.EnableTooltip = true;
        chart.ShowDataLabels = true;

        this.Content = chart;
    }
}

Common Patterns

Pattern 1: Custom Color Palette

<Grid>
    <Grid.Resources>
        <BrushCollection x:Key="customColors">
            <SolidColorBrush Color="#4dd0e1"/>
            <SolidColorBrush Color="#26c6da"/>
            <SolidColorBrush Color="#00bcd4"/>
            <SolidColorBrush Color="#00acc1"/>
            <SolidColorBrush Color="#0097a7"/>
        </BrushCollection>
    </Grid.Resources>

    <chart:SfPyramidChart Palette="Custom"
                          PaletteBrushes="{StaticResource customColors}"
                          ItemsSource="{Binding Data}"
                          XBindingPath="Category"
                          YBindingPath="Value"/>
</Grid>

Pattern 2: Interactive Pyramid with Selection

<chart:SfPyramidChart ItemsSource="{Binding Data}"
                      XBindingPath="Category"
                      YBindingPath="Value"
                      SelectionBehavior="SelectSingle">

    <chart:SfPyramidChart.SelectionBrush>
        <SolidColorBrush Color="#FF6B6B"/>
    </chart:SfPyramidChart.SelectionBrush>

</chart:SfPyramidChart>

Pattern 3: Exploding Segment on Click

<chart:SfPyramidChart ItemsSource="{Binding Data}"
                      XBindingPath="Category"
                      YBindingPath="Value"
                      ExplodeOnClick="True"
                      ExplodeRadius="10"/>

Pattern 4: Gradient-Styled Pyramid

<Grid>
    <Grid.Resources>
        <BrushCollection x:Key="gradientColors">
            <LinearGradientBrush>
                <GradientStop Offset="1" Color="#FFE7C7"/>
                <GradientStop Offset="0" Color="#FCB69F"/>
            </LinearGradientBrush>
            <LinearGradientBrush>
                <GradientStop Offset="1" Color="#fadd7d"/>
                <GradientStop Offset="0" Color="#fccc2d"/>
            </LinearGradientBrush>
        </BrushCollection>
    </Grid.Resources>

    <chart:SfPyramidChart Palette="Custom"
                          PaletteBrushes="{StaticResource gradientColors}"
                          ItemsSource="{Binding Data}"
                          XBindingPath="Category"
                          YBindingPath="Value"/>
</Grid>

Key Properties

PropertyTypeDescription
ItemsSourceobjectData source for the pyramid chart
XBindingPathstringProperty path for X-axis data (labels)
YBindingPathstringProperty path for Y-axis data (values)
HeaderobjectChart title or header content
LegendChartLegendLegend configuration object
EnableTooltipboolEnable/disable tooltips on hover
ShowDataLabelsboolShow/hide data labels on segments
PaletteChartColorPalettePredefined color palette
PaletteBrushesIListCustom color collection
ExplodeOnClickboolEnable segment explosion on click
ExplodeIndexintIndex of segment to explode
ExplodeRadiusdoubleDistance for exploded segment
GapRatiodoubleSpacing between segments (0-1)
SelectionBehaviorSelectionBehaviorSelection mode configuration

Common Use Cases

  1. Food/Nutrition Pyramids - Display food groups or nutritional hierarchies
  2. Sales Funnels - Visualize sales pipeline stages from leads to conversions
  3. Population Demographics - Show age or demographic distributions
  4. Market Segmentation - Display market share or customer segments
  5. Cost Breakdowns - Visualize expense categories in hierarchical order
  6. Priority Analysis - Show task or issue priorities in descending order
  7. Resource Allocation - Display resource distribution across categories

Related Skills


Next Steps: Read the relevant reference file based on your specific needs. Start with getting-started.md for initial setup, or jump directly to feature-specific guides for targeted implementations.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.98%
按下载量换算66

Claude

28.68%
按下载量换算54

Cursor

17.87%
按下载量换算34

Gemini CLI

9.28%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills