SxPieChart (饼图)

  • Implemented

NextUI 扩展图表。专门针对饼图场景优化的封装组件。

使用场景

  • 分类占比展示
  • 结构分布分析
  • 统计类可视化

约束说明

  • DataLabels 长度需匹配。
  • 未提供 Options 时使用默认饼图配置。

行为说明

  • Options 优先级高于 Data/Labels
  • 禁用状态不更新图表。

API

Parameters (参数)

状态 参数名 类型 默认值 描述
Implemented Data double[]? null 数据序列。
Implemented Labels string[]? null 数据标签。
Implemented Options object? null ECharts 配置。
Implemented Id (继承) string? null 组件 Id。
Implemented Class (继承) string? null CSS 类名。
Implemented Style (继承) string? null 自定义样式。
Implemented Title (继承) string? null HTML title
Implemented AdditionalAttributes (继承) IEnumerable<KeyValuePair<string, object>>? null 额外属性。

示例

<SxPieChart Data="@new double[] { 30, 70 }" Labels="@new[] { "A", "B" }" />

参考设计 (References)