christophe-g / d3-venn Goto Github PK
View Code? Open in Web Editor NEWd3 plugin for Venn Layout - Using https://github.com/benfred/venn.js as a submodule.
License: Other
d3 plugin for Venn Layout - Using https://github.com/benfred/venn.js as a submodule.
License: Other
Instead of
var data = [
{"set":["A"],"name":"node_0"},
{"set":["B"],"name":"node_1"},
{"set":["B","A"],"name":"node_2"},
{"set":["B","A"],"name":"node_3"}
]
We use
var data = [
{"set":["A"],"name":"node_0"},
{"set":["B"],"name":"node_1"},
{"set":["C"],"name":"node_2"},
{"set":["B","A","C"],"name":"node_3"}
]
we Get
WARNING: area A,B,C not represented on screen
Experimenting, I can never get nodes that are member of more than two sets to work
If I use the following data set, I would expect two circles with an overlap in the middle with one item in:
[
{"set":["A"],"name":"node_1"},
{"set":["A"],"name":"node_3"},
{"set":["A"],"name":"node_4"},
{"set":["B"],"name":"node_2"},
{"set":["A","B"],"name":"node_6"},
]
Is the data incorrect or is that how the plugin is intended to work?
Hello,
I've been playing with this repo and found some issues apart from #2 and #3, being the main one that it doesn't work out of the box with d3v4 because of the different namespace convention adopted. -d3.layout doesn't exist anymore-
Also I think in order for the community to benefit from your work it should be merged and maintained in the original venn.js. Obviously this is up to you but as I said I think it'd be beneficial for everybody.
I've opened another issue there in case you want to join the discussion:
benfred/venn.js#88
I'm having trouble using this module โย I added venn.js as a dependency, but I'm getting a compile error there because:
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
which I believe you tried to fix in your PR over there.
If I want to use your module, what should I do?
The simple and interactive examples are throwing
TypeError: d3.layout.venn(...).size(...).value is not a function
exception.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.