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)
- Axis 轴 labelAutoRotate 旋转异常 HOT 1
- 增加 label position 策略:exceedAdjust HOT 11
- g2能根据配置直接生成base64用于浏览器的打印吗 HOT 3
- G2 5.1.18中柱状图X轴数据过多时(200条),轴刻度间距怎么设置大点 HOT 5
- antv/g2 5.0 移除了getCanvas等方法后怎么同步拿到画布内容 HOT 1
- G2 5.1.18 柱状图elementSelect中background的样式修改 HOT 1
- 雷达图点击图例后,线条会飘到外面 HOT 1
- 柱线组合图,坐标轴转置之后,tooltip显示缺失 HOT 1
- brushXHighlight属性样式设置会导致一部分不符合预期高亮 HOT 1
- changeData更新数据。图例没有实时更新 HOT 3
- 当 encode.series 指定了某一个值时, tooltip.items 自定义 name 会失效
- link mark 设置 lineWidth 的时候,箭头显示不对
- overflowHide 对于标签在图形上放置不下的时候,随机隐藏标签。 HOT 4
- Tooltip、Brush 等交互在 shadow dom 内失效 HOT 3
- 柱线组合图,坐标轴转置之后,tooltip显示缺失
- chart.facetRect()分面不支持仪表盘
- 设置x轴刻度数无效
- 官方示例水波图NaN% HOT 1
- 答疑labelAutoHide使用
- 开启缩略轴,数据标签被裁切 HOT 1
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.