Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: area ... not represented on screen #40

Closed
Wytamma opened this issue Jul 20, 2022 · 2 comments
Closed

WARNING: area ... not represented on screen #40

Wytamma opened this issue Jul 20, 2022 · 2 comments
Labels
answered The question has been answered but is in a waiting state question Further information is requested

Comments

@Wytamma
Copy link

Wytamma commented Jul 20, 2022

I have these sets

const sets = [{'label': 'BA.5', 'sets': [2], 'size': 16},
{'label': 'BA.2.38.1', 'sets': [1], 'size': 17},
{'sets': [1, 2], 'size': 0},
{'label': 'BA.2.38', 'sets': [0], 'size': 16},
{'sets': [0, 2], 'size': 0},
{'sets': [0, 1], 'size': 1},
{'sets': [0, 1, 2], 'size': 15}]

However I get a warning WARNING: area 0,1,2 not represented on screen when I run venn.js. The intersection of all three sets is not drawn.

image

@danielyule (benfred#114) says it's the can be fixed by updating the initial layout and the loss function (to prioritize ensuring all overlaps are shown). But there doesn’t seem to be a way to do this?

@Wytamma Wytamma added the bug Something isn't working label Jul 20, 2022
@sgratzl sgratzl added question Further information is requested and removed bug Something isn't working labels Jul 20, 2022
@sgratzl
Copy link
Member

sgratzl commented Jul 20, 2022

you can specify the loss function to use using the .lossFunction similarly there is a .layoutFunction to change the layout function. However, that are "better" loss functions I don't know

@sgratzl sgratzl added the answered The question has been answered but is in a waiting state label Jul 21, 2022
@Wytamma
Copy link
Author

Wytamma commented Jul 22, 2022

Thanks @sgratzl!

@Wytamma Wytamma closed this as completed Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered The question has been answered but is in a waiting state question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants