SuperAPI AI 工具集

syncfusion-wpf-sunburst-chart

通用与其它

查看项目

更新于 10-15 23:56

技能介绍

用途:在 WPF 应用中通过 SfSunburstChart 控件,用同心圆环展示具有 2 至 5 层的层次数据,中心为根节点,外环为更深层级;适合组织结构、文件系统、销售层级、预算分配等场景。

主要能力:支持 IEnumerable 数据源与 MVVM 绑定(ItemsSource、ValueMemberPath);用 Levels 定义层级,SunburstHierarchicalLevel 的 GroupMemberPath 指定每层分组字段;可配置表头、图例(SunburstLegend,图标形状、位置、点击切换选择或显隐)、数据标签(ShowLabel、LabelOverflowMode、LabelRotationMode、字体与模板);调色板(Metro、AutumnBrights、FloraHues 等或自定义 ColorModel/CustomBrushes);区域属性 Radius、InnerRadius、StartAngle、EndAngle;动画 EnableAnimation、AnimationType(FadeIn、Rotation)、AnimationDuration;行为 SunburstToolTipBehavior、SunburstSelectionBehavior、SunburstZoomingBehavior;事件 SegmentCreated、SelectionChanged。

使用方式:引用程序集 Syncfusion.SfSunburstChart.WPF,NuGet 安装 Install-Package Syncfusion.SfSunburstChart.WPF,最低 .NET Framework 4.5。XAML 中声明 xmlns:sunburst="clr-namespace:Syncfusion.UI.Xaml.SunburstChart;assembly=Syncfusion.SfSunburstChart.WPF",设置 ItemsSource 与 ValueMemberPath,并在 Levels 中按层级添加 GroupMemberPath。

适用场景:公司架构、磁盘占用、销售看板、预算分布、网站流量层级等含数值权重的嵌套分类数据。

限制:官方资料未提供收费、许可与价格信息;建议层级控制在 3 至 5 层,数据量大时考虑聚合;ValueMemberPath 需指向正数值属性,其他未说明项暂未提供。