@@ -7,16 +7,63 @@ link: /examples#statistics-waterfall
77order : 14
88---
99
10- ## 特有
10+ ## 简介
1111
12- ### linkStyle
12+ 瀑布图(Waterfall)又称桥接图或飞瀑图,是一种用于展示数据从初始值到最终值的演变过程及各因素影响的可视化图表。其核心特征包括:
1313
14- <description >** required** _ attrStyle_ </description >
14+ - 阶梯式布局:以柱状图为基础,通过垂直条形的增减叠加,呈现数据的累积变化。
15+ - 因果关系可视化:
16+ - 初始值与最终值用完整柱形表示(通常居左、右两端)。
17+ - 中间柱形表示各因素的影响(正值向上延伸,负值向下延伸)。
18+ - 流向隐喻:形似瀑布的水流方向,直观展示数据 “增长 - 衰减” 的动态过程。
1519
16- 连线样式
20+ ## 代码演示
1721
18- ### xField
22+ 更多示例详见 [ Waterfall ] ( /examples#statistics-waterfall )
1923
20- < description > ** required ** _ string | string [ ] _ </ description >
24+ ### 基础用法
2125
22- x 轴字段
26+ <Playground path =" /statistics/waterfall/demo/basic.js " rid =" waterfall-basic " ></playground >
27+
28+ ### 连接线标记
29+
30+ <Playground path =" /statistics/waterfall/demo/connector.js " rid =" waterfall-connector " ></playground >
31+
32+ ### 反向链接线标记
33+
34+ <Playground path =" /statistics/waterfall/demo/reverse.js " rid =" waterfall-reverse " ></playground >
35+
36+ ## 配置项
37+
38+ ### 概览
39+
40+ | 配置项| 说明| 类型| 默认值|
41+ | -----| ---| ----| -----|
42+ | data | [ 数据] ( /options/plots/data/overview ) | Array | [ ] |
43+ | xField | 横轴字段 | string | - |
44+ | yField | 纵轴字段 | string | - |
45+ | colorField | 和 seriesField 类似,不过会加上颜色通道,详见[ color] ( /options/plots/color ) | string(可选) | - |
46+ | linkStyle | 连接线样式,配置项详见[ 配置线的样式] ( /options/plots/style#配置线的样式 ) | object(可选) | - |
47+ | connector | 连接线标记,配置和 [ Line] ( /components/plots/line ) 类似,默认处理了 ` xField ` 、` yField ` 、` data ` ,可通过 ` reverse ` 字段让连线绘制方向颠倒,通过 ` style ` 指定[ 配置线的样式] ( /options/plots/style#配置线的样式 ) 。 | object(可选) | - |
48+ | title | 用于指定图表的标题内容,详见[ 标题] ( /options/plots/title ) | object(可选) | - |
49+ | axis | 用于建立数据与视觉位置的映射关系,详见[ 坐标轴] ( /options/plots/axis ) | object(可选) | - |
50+ | legend | 图表的辅助元素,使用颜色、大小、形状区分不同的数据类型,用于图表中数据的筛选,详见[ 图例] ( /options/plots/legend ) | object(可选) | - |
51+ | label | 数据标签是给图表添加标注的手段之一,详见[ 标签] ( /options/plots/label ) | object(可选) | - |
52+ | tooltip | 用于动态展示数据点的详细信息,详见[ 提示] ( /options/plots/tooltip ) | object(可选) | - |
53+ | style | 视觉样式,配置项详见[ 绘图属性] ( /options/plots/style#绘图属性 ) | object(可选) | - |
54+ | theme | 用于控制图表的整体外观,包括颜色、字体、边距等视觉属性,详见[ 主题] ( /options/plots/theme/overview ) | string \| object(可选) | ` light ` |
55+ | onReady | 图表加载回调,用于后续的事件[ 事件] ( /options/plots/event ) 绑定 | Function(可选) | - |
56+ | scale | 将抽象数据映射为视觉数据,详见[ 比例尺] ( /options/plots/scale/overview ) | object(可选) | - |
57+ | animate | 动画作为可视化的重要组成部分,能显著提高数据可视化的表现力,详见[ 动画] ( /options/plots/animate/overview ) | object(可选) | - |
58+ | interaction | 提供了按需探索数据的能力,详见[ 交互] ( /options/plots/interaction/overview ) | object(可选) | - |
59+ | state | 实现交互反馈、高亮、选中等效果,详见[ 状态] ( /options/plots/state ) ,不同交互下图表样式 | object(可选) | - |
60+ | annotations | 视图好比一个画板,` Waterfall ` 组件默认在其上绘制了一个瀑布图,我们可以通过 annotations 在上面叠加更多的图层,详见[ 标注] ( /examples#statistics-annotation-shape ) | Array(可选) | - |
61+
62+
63+ ## 事件
64+
65+ 详见[ 选项-事件] ( /options/plots/event ) 。
66+
67+ ## 方法
68+
69+ 详见[ 图表概览-图表方法] ( /components/plots/overview#图表方法 ) 。
0 commit comments