SxLineChart (折线图)
- Implemented
NextUI 扩展图表。专门针对折线图场景优化的封装组件。
使用场景
- 趋势与时间序列展示
- 运营/指标折线图
- 轻量可视化
约束说明
Options提供时将直接透传到 ECharts。- 未提供
Options时使用Data/Labels生成默认配置。
行为说明
- 首次渲染初始化 ECharts 实例。
Disabled为真时不更新图表数据。
API
Parameters (参数)
| 状态 | 参数名 | 类型 | 默认值 | 描述 |
|---|---|---|---|---|
| Implemented | Data |
double[]? |
null |
数据序列。 |
| Implemented | Labels |
string[]? |
null |
X 轴分类标签。 |
| Implemented | Options |
object? |
null |
覆盖 ECharts 配置。 |
| Implemented | Disabled (继承) |
bool |
false |
禁用状态。 |
| 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 |
捕获不匹配的 HTML 属性。 |
示例
<SxLineChart Data="_values" Labels="_labels" />