Comments (4)
韦恩图的问题,其实在于如何表示数据,韦恩图的几个关系 交、并、包含、互斥之类的,如何表达在数据中,如何自动布局都需要考虑清楚才能做,两两之间的关系、甚至多个个节点之间的关系也比较麻烦。
一个本质的问题是你绘制韦恩图的目的是为了自动布局,还是位置事先已经有了,仅仅来表达两者之间的关系,如果相交的话颜色是否要变换。
from g2.
自动布局、宽度适配、相交变换、label信息、交互都需要。
from g2.
如果这样的话,数据模型本身就要比较复杂,节点和关系需要两份数据
var nodes = [{name: 'a', value: xxx},{name:'b',value:xxx}];
var relations = [{relation: 'a-b',type: 'union'},{relation: 'b-c',type: 'union'}.....];
var layout = new Layout.Wayne({nodes: nodes,relations: realtions});
view.point().position('x*y').color('xxx').size('value').shape('vayne');
from g2.
结论:暂时不在g2上专门实现韦恩图
from g2.
Related Issues (20)
- 饼图怎么支持排序 HOT 1
- 如何能调节shape的层级 使其不遮挡pieLabel
- 图形宽度设置百分比 HOT 1
- 散点图label 设置 position:inside 后 ,如何实现 内容 超出省略的功能
- 分组条形图提示错误 HOT 1
- chrome 85版本 配置了polyfill之后饼图的tooltip依旧报错 HOT 19
- 【g2】 【v5.2.1】报错,图表无法显示;报错内容:ReferenceError: group is not defined HOT 4
- 【V5】legend itemMarker 的内置类型是否可以扩展? HOT 3
- 柱线混合图,坐标轴刻度不对齐,有什么方法可以对齐 HOT 5
- 新版本g2 5.2.1 没有保存图片的方法了, chart.downloadImage()不能使用显示不存在这个方法 HOT 1
- 柱状统计图的x轴部分名称显示不出来 HOT 2
- 仪表盘 中间文字 显示不需要的 toopTip
- G2 V4 的 columnWidthRatio 配置,在 G2 V5 如何实现相似效果 HOT 8
- 关于文档查找API使用说明找不到的问题 HOT 4
- 如何实现类似g2plot,柱状图hover元素区域外的同时,也高亮背景色?
- 如何调整条形图之间的间距 HOT 2
- 如何绑定颜色 HOT 1
- hover 至某些图表的label 无法触发 tooltip 提示 HOT 1
- frame 属性不起 作用
- 条形图 坐标上的标签 可以这么实现吗 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g2.