Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-treemap同步融合 winforms 树形图

Agent Skill

syncfusion-winforms-treemap 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

675

周安装

29

GitHub Stars

1

下载量

237
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前需确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-winforms-treemap 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Windows Forms TreeMap

Guide for implementing the Syncfusion® Windows Forms TreeMap control for visualizing hierarchical data through nested, color-coded rectangles. TreeMaps efficiently display large datasets where the size and color of rectangles represent quantitative values.

When to Use This Skill

Use this skill when you need to:

  • Visualize hierarchical data with nested rectangles
  • Display large datasets in space-efficient layouts
  • Show proportional relationships through rectangle sizes
  • Color-code data values with multiple mapping strategies
  • Implement TreeMap layouts (Squarified, SliceAndDice variations)
  • Create interactive visualizations with tooltips and legends
  • Customize TreeMap appearance with headers, labels, and custom rendering
  • Analyze categorical data like stock portfolios, disk usage, or sales by region

TreeMap Overview

Tree maps are ideal for visualizing large amounts of data where space is split into rectangles sized and colored based on quantitative variables. The levels in the hierarchy are visualized as rectangles containing other rectangles.

Key concepts:

  • Rectangles represent data items - Size based on weight value
  • Hierarchical nesting - Parent rectangles contain child rectangles
  • Color coding - Colors represent data categories or value ranges
  • Space efficiency - Entire visualization area is utilized
  • Multiple levels - Support for multi-level hierarchies

Common Use Cases

TreeMaps are used to represent large or complex data sets in various applications:

  1. Stock Market Analysis - Rectangle size represents stock weight in index, color shows gain/loss range
  2. Internet Usage Categories - Visualize usage across retail, social networks, search, etc.
  3. News Aggregation - Colors represent sections (business, politics), size represents story frequency
  4. Weather Analysis - Opacity represents humidity, size represents geographic area
  5. Disk Space Usage - Visualize file and folder sizes in storage
  6. Sales by Region/Product - Show sales distribution across categories
  7. Portfolio Management - Display asset allocation and performance

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and control dependencies
  • NuGet package installation
  • Creating TreeMap control instance
  • Adding control to Windows Forms application
  • Basic namespace and assembly references
  • First working TreeMap example

Overview and Visualization Concepts

📄 Read: references/overview-and-use-cases.md

  • What TreeMaps are and how they work
  • Hierarchical information visualization
  • Clustered rectangles and data representation
  • Real-world use case scenarios
  • When to choose TreeMap over other visualizations

Core Configuration - Weight and Color Paths

📄 Read: references/weight-and-color-paths.md

  • WeightValuePath property for sizing rectangles
  • ColorValuePath property for color mapping
  • Data binding path requirements
  • Field specifications in data models
  • Configuration examples

Data Binding and Levels

📄 Read: references/items-source-and-levels.md

  • ItemsSource setup with flat data collections
  • Creating data view models
  • TreeMapFlatLevel configuration
  • GroupPath for hierarchical grouping
  • GroupGap for visual separation
  • Multi-level TreeMap structure
  • Complete data binding examples

Layout Modes

📄 Read: references/layout-modes.md

  • ItemsLayoutMode property overview
  • Squarified layout algorithm
  • SliceAndDiceAuto layout
  • SliceAndDiceHorizontal layout
  • SliceAndDiceVertical layout
  • Choosing the right layout for your data
  • Visual comparisons

Color Mapping Strategies

📄 Read: references/color-mapping.md

  • Four color mapping types overview
  • UniColorMapping for single color application
  • RangeBrushColorMapping for value ranges
  • DesaturationColorMapping for opacity-based coloring
  • PaletteColorMapping for color collections
  • LeafColorMapping configuration
  • Complete examples for each type

Headers and Labels Customization

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

  • Label font and color customization
  • LabelBrush and LabelBackgroundBrush
  • Label border properties
  • HeaderBrush configuration
  • ShowLabels property for visibility
  • HeaderHeight for level headers
  • Complete styling examples

Legend Support

📄 Read: references/legend-support.md

  • TreeMap legend for color value demonstration
  • LegendPosition configuration (Left, Right, Top, Bottom)
  • LegendType for icon shapes
  • LegendGap for spacing
  • Integration with RangeBrushColorMapping
  • LegendLabel in RangeBrush items

Tooltips and Advanced Customization

📄 Read: references/tooltip-and-customization.md

  • Tooltip visibility and configuration
  • HeaderToolTipInfo for group tooltips
  • ItemToolTipInfo for leaf tooltips
  • Custom tooltip content patterns
  • LeafItemDrawing event for custom rendering
  • Advanced leaf node customization
  • Custom graphics and images in TreeMap

Quick Start Example

Step 1: Install NuGet Package

Install-Package Syncfusion.TreeMap.WinForms

Step 2: Create Data Model

using System.Collections.ObjectModel;

public class PopulationDetail
{
    public string Continent { get; set; }
    public string Country { get; set; }
    public double Growth { get; set; }
    public double Population { get; set; }
}

public class PopulationViewModel
{
    public ObservableCollection<PopulationDetail> PopulationDetails { get; set; }

    public PopulationViewModel()
    {
        PopulationDetails = new ObservableCollection<PopulationDetail>();

        PopulationDetails.Add(new PopulationDetail
        {
            Continent = "Asia",
            Country = "Indonesia",
            Growth = 3,
            Population = 237641326
        });

        PopulationDetails.Add(new PopulationDetail
        {
            Continent = "Asia",
            Country = "Russia",
            Growth = 2,
            Population = 152518015
        });

        PopulationDetails.Add(new PopulationDetail
        {
            Continent = "North America",
            Country = "United States",
            Growth = 4,
            Population = 315645000
        });

        // Add more data...
    }
}

Step 3: Configure TreeMap

using Syncfusion.Windows.Forms.TreeMap;

public class MyForm : Form
{
    private TreeMap treeMap;

    public MyForm()
    {
        InitializeComponent();

        // Create TreeMap instance
        treeMap = new TreeMap();

        // Set data source
        PopulationViewModel data = new PopulationViewModel();
        treeMap.ItemsSource = data.PopulationDetails;

        // Configure paths
        treeMap.WeightValuePath = "Population";
        treeMap.ColorValuePath = "Growth";

        // Set layout mode
        treeMap.ItemsLayoutMode = ItemsLayoutModes.Squarified;

        // Add first level (Continent)
        TreeMapFlatLevel level1 = new TreeMapFlatLevel();
        level1.GroupPath = "Continent";
        level1.ShowLabels = true;
        treeMap.Levels.Add(level1);

        // Add second level (Country)
        TreeMapFlatLevel level2 = new TreeMapFlatLevel();
        level2.GroupPath = "Country";
        level2.ShowLabels = true;
        level2.HeaderHeight = 25;
        treeMap.Levels.Add(level2);

        // Add color mapping
        UniColorMapping colorMapping = new UniColorMapping();
        colorMapping.Color = Color.MediumSlateBlue;
        treeMap.LeafColorMapping = colorMapping;

        // Set size and add to form
        treeMap.Size = new Size(800, 600);
        treeMap.Location = new Point(10, 10);
        this.Controls.Add(treeMap);
    }
}

Common Patterns

Multi-Level Hierarchy Pattern

// Create levels for nested grouping
TreeMapFlatLevel level1 = new TreeMapFlatLevel();
level1.GroupPath = "Category";
level1.ShowLabels = true;
treeMap.Levels.Add(level1);

TreeMapFlatLevel level2 = new TreeMapFlatLevel();
level2.GroupPath = "SubCategory";
level2.ShowLabels = true;
level2.HeaderHeight = 25;
treeMap.Levels.Add(level2);

TreeMapFlatLevel level3 = new TreeMapFlatLevel();
level3.GroupPath = "Item";
level3.ShowLabels = true;
level3.HeaderHeight = 20;
treeMap.Levels.Add(level3);

Range-Based Color Mapping Pattern

RangeBrushColorMapping rangeMapping = new RangeBrushColorMapping();

rangeMapping.Brushes.Add(new RangeBrush
{
    Color = ColorTranslator.FromHtml("#77D8D8"),
    From = 0,
    To = 1,
    LegendLabel = "Low"
});

rangeMapping.Brushes.Add(new RangeBrush
{
    Color = ColorTranslator.FromHtml("#FFAF51"),
    From = 1,
    To = 5,
    LegendLabel = "Medium"
});

rangeMapping.Brushes.Add(new RangeBrush
{
    Color = ColorTranslator.FromHtml("#F3D240"),
    From = 5,
    To = 20,
    LegendLabel = "High"
});

treeMap.LeafColorMapping = rangeMapping;

Interactive Tooltip Pattern

// Enable tooltips
treeMap.IsToolTipVisible = true;

// Configure header tooltip
ToolTipInfo headerToolTip = new ToolTipInfo();
headerToolTip.ToolTipHeaderPattern = "<b>{Label}</b>";
headerToolTip.ToolTipContentPattern = "Growth: {Growth}%";
treeMap.HeaderToolTipInfo = headerToolTip;

// Configure item tooltip
ToolTipInfo itemToolTip = new ToolTipInfo();
itemToolTip.ToolTipHeaderPattern = "<b>{Country}</b>";
itemToolTip.ToolTipContentPattern = "Growth: {Growth}%\nPopulation: {Population}";
treeMap.ItemToolTipInfo = itemToolTip;

Key Properties Reference

Essential Properties

PropertyTypeDescription
ItemsSourceobjectData collection to visualize
WeightValuePathstringPath to field determining rectangle size
ColorValuePathstringPath to field for color mapping
ItemsLayoutModeItemsLayoutModesLayout algorithm selection
LevelsTreeMapLevelCollectionCollection of hierarchical levels
LeafColorMappingTreeMapColorMappingColor mapping strategy

Customization Properties

PropertyTypeDescription
LabelFontFontFont for leaf node labels
LabelBrushBrushLabel text color
LabelBackgroundBrushBrushLabel background color
LabelBorderBrushBrushLabel border color
LabelBorderThicknessintLabel border width
HeaderBrushBrushHeader background color

Legend Properties

PropertyTypeDescription
LegendPositionLegendPositionsLegend placement (Top/Bottom/Left/Right)
LegendTypeLegendTypesLegend icon shape
LegendGapintSpacing between legend items

Tooltip Properties

PropertyTypeDescription
IsToolTipVisibleboolEnable/disable tooltips
HeaderToolTipInfoToolTipInfoTooltip configuration for headers
ItemToolTipInfoToolTipInfoTooltip configuration for leaf items

Decision Guide

When to Use Each Layout Mode

Squarified:

  • Best for balanced aspect ratios
  • More readable rectangles
  • General-purpose visualization
  • Use when: Data proportions vary widely

SliceAndDiceAuto:

  • Alternates horizontal/vertical splits by level
  • Good for hierarchical clarity
  • Use when: Showing clear level separation

SliceAndDiceHorizontal:

  • All rectangles split horizontally
  • Use when: Wide display area available

SliceAndDiceVertical:

  • All rectangles split vertically
  • Use when: Tall display area available

Choosing Color Mapping

UniColorMapping:

  • Single color for all items
  • Use when: Color doesn't represent data, only grouping

RangeBrushColorMapping:

  • Different colors for value ranges
  • Use when: Categorizing data into discrete ranges (low/medium/high)

DesaturationColorMapping:

  • Single base color with varying opacity
  • Use when: Showing continuous gradient of values

PaletteColorMapping:

  • Cycle through color collection
  • Use when: Distinguishing categories without value meaning

Edge Cases and Troubleshooting

Missing Data in Visualization

  • Cause: WeightValuePath or ColorValuePath field missing in data model
  • Solution: Ensure all data objects have required properties

Labels Not Showing

  • Cause: ShowLabels property not set on TreeMapFlatLevel
  • Solution: Set level.ShowLabels = true for each level

Colors Not Applying

  • Cause: LeafColorMapping not configured
  • Solution: Create and assign color mapping to TreeMap.LeafColorMapping

Assembly Reference Error

  • Cause: Missing Syncfusion.TreeMap.Windows assembly
  • Solution: Install Syncfusion.TreeMap.WinForms NuGet package

Levels Not Grouping Correctly

  • Cause: GroupPath doesn't match data property name
  • Solution: Verify GroupPath string matches exact property name (case-sensitive)

Best Practices

  1. Use ObservableCollection for dynamic data that may change
  2. Set appropriate HeaderHeight for multi-level TreeMaps (20-30 pixels)
  3. Choose color mapping based on data meaning (ranges vs. gradient)
  4. Enable tooltips for interactive exploration of data
  5. Use GroupGap to visually separate levels (5-10 pixels)
  6. Test with realistic data sizes to ensure layout works well
  7. Provide legends when using RangeBrushColorMapping
  8. Consider layout mode based on display dimensions

Assembly: Syncfusion.TreeMap.Windows Namespace: Syncfusion.Windows.Forms.TreeMap NuGet Package: Syncfusion.TreeMap.WinForms

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.97%
按下载量换算88

Claude

29.38%
按下载量换算70

Cursor

20.43%
按下载量换算48

Gemini CLI

9.89%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills