Files
sankey/todo.md
2026-02-12 13:33:27 +08:00

53 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 桑基图制作工具
name: 星程桑基图
解析excel或csv数据生成sankey图
## 测试数据
data目录
## 技术栈
web + 微信小程序 + APPAPP以后实现
web使用vue3 + typescript
公用核心,重用,便于扩展
## 功能
1. 上传excel或csv文件
2. 列选择:
- source: data列, description列(可选) -- 没有描述列以data作为描述
- source: 描述列(可选) -- 没有描述列以data作为描述
3. excel & csv解析
```csv
宁波北欧10,2582,嘉兴四级算力池,http://14.173.1.216:8898/api/v1/detect,小模型,0908,12000,11623
宁波北欧12,2610,,,,,,
宁波鄞中15,507,,,,,,
宁波鄞中26,2914,,,,,,
宁波鄞中27,3010,,,,,,
```
如:
source data - 2UI中取列名description - 1,2
target description - 3、8、5
表示:
- 前两列是source;后面几列相当于excel的合并单元格(与上行内容相同,实现中,可以简化处理,赋值补全)是target
- source 数据使用第2列描述内容使用1、2列宁波北欧10-2582
- target 自动计算source的总和描述内容使用3、8、5列"嘉兴四级算力池-11623-小模型"
3. 支持png和svg导出
4. 配置
- 方向source -> target
target -> source
- 配色
- gap/padding
- 提供excel & csv模版
5. 未来功能
- 三级桑基图
- 预览excel/csv从中选择列
- 预览元素定制