Chart 图表
经营概览数据报表:指标卡 RdStatCard、图表容器 RdChartCard(主包)与 RdChartLine / RdChartCombo / RdChartArea / RdChartBar / RdChartPie / RdChartRank / RdChartRadar / RdChartGauge / RdChartFunnel / RdChartHeatmap(@rd-element/ui/chart)。图表入口需安装 echarts、vue-echarts peer 依赖。
RdStatCard 指标卡
经营概览 / 列表 Hero 核心指标:数值、环比 / 同比、迷你趋势;可用 #right 放置 RdChartGauge 等扩展内容。
本月询价单
1,248单
环比 +12.3%
同比 +8.6%
上月1,111
去年同期980
成交订单
328单
环比 +5.8%
同比 -2.1%
平均响应时长
4.2小时
环比 -8.1%
同比 -12.4%
客户流失率
2.4%
环比 +0.3%
同比 +0.1%
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
label / value / unit | 指标名与数值 | string | — |
momLabel / momValue / momTrend | 环比文案、数值与涨跌 | string / StatCardTrend | '环比' / — / 'flat' |
yoyLabel / yoyValue / yoyTrend | 同比文案、数值与涨跌 | string / StatCardTrend | '同比' / — / 'flat' |
compareLabel / compareValue / trend | 单条对比(兼容旧用法;有 mom/yoy 时忽略) | string / StatCardTrend | 'flat' |
extra | 附加指标行 | { label, value }[] | — |
extraLayout | extra 布局:vertical 上下 / horizontal 左右 | 'vertical' | 'horizontal' | 'vertical' |
sparkline | 迷你折线数据 | number[] | — |
color | 强调色 | StatCardColor | 'default' |
animate / enterDelay | 动效与错峰入场(ms) | boolean / number | true / 0 |
Slots
| 插槽名 | 说明 |
|---|---|
icon | 标题右侧图标 |
trend | 覆盖默认环比/同比区 |
right | 卡片右侧扩展区(如 RdChartGauge) |
default | 主内容区底部追加 |
RdChartCard 图表卡片
图表外层统一标题、副标题与操作区;承载各 RdChart* 与空/错态。
询价 & 成交趋势
近 12 个月
实时
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
title / subtitle | 卡片标题区 | string | '' |
plain | 无边框紧凑嵌套态 | boolean | false |
#actions / #default | 操作区与图表内容 | slot | — |
RdChartLine 折线图
趋势指标:询价量、成交额随时间变化。
询价 & 成交趋势
近 12 个月
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
categories / series | 横轴类目与多系列 | string[] / LineSeriesData[] | — |
height / smooth / legend | 高度、平滑曲线、图例 | string / boolean | '280px' / true / true |
empty / error | 空态与错误态 | boolean | false |
yFormatter | Y 轴数值格式化 | (v: number) => string | — |
@retry | 错误态重试 | event | — |
RdChartCombo 柱折混合
体量(柱)+ 比率/趋势(线)同屏,如 GMV 与转化率。可用 unit / series[].unit 配置单位(showUnit 控制显隐);tooltip 会带单位,未传 yFormatter 时轴刻度也会追加单位。
GMV & 转化率
近 12 个月 · 双轴
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
categories / series | 共享横轴与柱/线系列 | string[] / ComboSeriesData[] | — |
yAxisIndex | 系列绑定 0=左轴 · 1=右轴 | 0 | 1 | 0 |
unit | 全图默认单位(系列未指定时) | string | '' |
showUnit | 是否展示单位 | boolean | true |
series[].unit | 单系列单位(覆盖全图 unit) | string | — |
yFormatter / yFormatterRight | 左/右 Y 轴格式化(传入时轴上不再追加 unit) | (v: number) => string | — |
yAxisLabelRight | 右轴名称 | string | — |
RdChartArea 堆叠面积
多系列占比随时间变化,看总量与结构。
事业群收入构成
近 12 个月
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
categories / series | 类目与堆叠系列 | string[] / AreaSeriesData[] | — |
stack | 堆叠面积 | boolean | true |
height / smooth | 高度与平滑 | string / boolean | '280px' / true |
RdChartBar 柱状图
分类对比:大区业绩、产品线订单量;可堆叠或水平。
各事业群成交量
分组柱状
各事业群成交量(堆叠)
堆叠柱状
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
categories / series | 类目与系列 | string[] / BarSeriesData[] | — |
stack / horizontal | 堆叠、水平条 | boolean | false |
height | 图表高度 | string | '280px' |
RdChartPie 环形 / 饼图
结构占比:客户等级、来源渠道分布。
成交占比
环形图 · 含中心文字
智能制造42.0% 42
平台服务28.0% 28
新能源18.0% 18
消费品12.0% 12
成交占比
实心饼图
智能制造42.0% 42
平台服务28.0% 28
新能源18.0% 18
消费品12.0% 12
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
data | 扇区 name / value | PieItem[] | — |
innerRadius | 内半径(0 为实心饼) | string | '60%' |
centerLabel / centerValue | 环形中心文案 | string | — |
RdChartRank 排行条形
大区 / 客户 / 销售排行 Top N。
大区业绩排行
按成交单量
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
data | 名称 + 数值排行 | RankItem[] | — |
valueFormatter | 数值格式化 | (v: number) => string | — |
highlightTop | 高亮前 N 名 | number | 3 |
RdChartRadar 雷达图
多维能力 / 评分对比,可叠基线或竞品。
经营能力雷达
本月 vs 行业基线
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
indicators | 维度轴 | RadarIndicator[] | — |
series | 多系列分值 | RadarSeriesData[] | — |
height | 图表高度 | string | '280px' |
RdChartGauge 仪表盘
目标完成率、产能利用率、回款进度等单一比率。
目标完成率
本月
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
value / max | 当前值与上限 | number | — / 100 |
label / sublabel | 中心主/副文案 | string | — |
height | 图表高度 | string | '200px' |
RdChartFunnel 漏斗图
询价→报价→成交等阶段转化漏斗。图形内名称 / 数量 / 转化率可分别开关;底部列表用 showTable 单独控制。unit 用于数量单位(图形 / tooltip / 列表),showUnit 控制是否展示。
询价转化漏斗
曝光 → 下单全链路
阶段数量转化率
曝光量12,000 次 100%
点击访问6,800 次 56.7%
询价提交2,400 次 20.0%
报价回复1,560 次 13.0%
成交下单640 次 5.3%
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
data | 阶段名称与数量 | FunnelItem[] | — |
showName | 图形内显示阶段名称 | boolean | true |
showValue | 图形内显示数量 | boolean | true |
showRate | 图形内显示转化率 | boolean | true |
showTable | 是否展示底部阶段列表 | boolean | true |
unit | 数量单位(tooltip / 图形 / 列表) | string | '' |
showUnit | 是否展示单位 | boolean | true |
height | 图表高度 | string | '240px' |
RdChartHeatmap 日历热力
日历热力:日活、询价密度,看忙闲规律。
询价活跃日历
2026 年 7 月
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
data | 日期 + 强度 [YYYY-MM-DD, number] | HeatmapDatum[] | — |
month | 展示年月 | string | data 首条月份 |
max / color | visualMap 上限与主色 | number / string | auto |