apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60k stars 19.59k forks source link

[Feature] 想找到一个家族族谱方面的图表 #16256

Closed kazeik closed 2 years ago

kazeik commented 2 years ago

What problem does this feature solve?

一直想写一个族谱方面的app,用于记录从自己的发派祖到以后自己子代关系的一个延续。但在中国古代,可能会存在一夫多妻的情况,也会有多个子级关系,一般一个家庭关系,向上寻根,可能追溯到上下四五十代,甚至百代。这个关系的数据量是很大的,如果用单纯的canvas来画,手机端肯定是处理不过来的。所以想利用echarts在图表上的能力,来弄这么一个图库。 但目前echarts上提供的图表中,并没有一个类家族世系图表的库,所以在这里请求帮助了。

What does the proposed API look like?

这个我暂时没有思路

echarts-bot[bot] commented 2 years ago

@kazeik It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** [Feature] Want to find a chart of family genealogy **BODY** ### What problem does this feature solve? I've always wanted to write a genealogical app to record a continuation of relationships from my ancestors to my descendants. But in ancient China, there may be polygamy, there will also be multiple sub-relationships, generally a family relationship, upward roots, may be traced back to forty or fifty generations, or even hundreds of generations. The amount of data in this relationship is very large, if you use simple canvas to draw, the mobile phone side will definitely not be able to handle it. So I wanted to use echarts' ability on charts to get such an gallery. But there is no library of family-like lineage charts in the charts currently available on echarts, so I have asked for help here. ### What does the proposed API look like? I don't have any ideas about this for the time being
Ovilia commented 2 years ago

基本思路是利用 graph 图的漫游(roam)能力,帮助你简化移动画布引起的重绘方面的逻辑。你需要自己计算每个节点的位置,作为 x、y 传入。但是除了漫游的能力之外,ECharts 能提供的帮助与你自己写 Canvas 相比,可能并没有非常大的区别,甚至自己写还比较直观一点。