Comments (4)
Update: this only happens when the circles are dynamically updated and a circle with a larger label is moved to the edge (making this even less likely to happen in the real world.
from venn.js.
I've seen this bug happen with long label names too.
The easiest fix is probably to shift the label left/right until it entirely fits inside the SVG. It might look a little weird with it not being centred - but probably will still be better than the clipped we have now.
I might take a stab at this tonight, it shouldn't be too hard to do a quick hacky version here.
from venn.js.
This is fixed by PR #17
from venn.js.
So - this is still an issue even with the scaling code from #17
Take for instance this diagram, the labels for the circle on the left are still cut off;
The problem is that the scaling assumes that everything is centred - where the label is offset to one side of the diagram. Also I think scaling further makes the whole thing look worse since the text and the circles ends up getting smaller.
To fix this, I added some code to wrap the text here instead (c13c42c). With this patch the same diagram looks like:
from venn.js.
Related Issues (20)
- Default loss function should use log ratio, not subtraction
- Proper subset not displaying correctly
- Removing and readding a set quickly uninentionally hides the set
- Invisible triple intersection HOT 1
- Minimum circle size HOT 2
- Static size of circles HOT 2
- Label is displayed on other label
- Abandoned? Lots of good PRs out there. HOT 2
- could not find a declaration file for module 'venn.js' in React HOT 1
- Dependent d3 version5 for venn.js HOT 2
- Parsing a heading with each set of data
- Compatibility with d3-selection HOT 1
- url question about snowpack HOT 3
- could you publish the npm for the latest git code? HOT 3
- Uncaught initial bisect points must have opposite signs HOT 1
- How to fix circle same position on every refresh time in venn.js
- Custom circle colors HOT 1
- jsnext:main es6 problem HOT 1
- The calculation accuracy of function circleCircleIntersection problem
- Is there a way to programmatically get a list of intersections not shown. HOT 4
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 venn.js.