benfred/venn.js

Handle 0 Size Gracefully

theavijitsarkar opened this issue · 6 comments

Can there be a better representation if all elements are 0. Somehow the library breaks with errors if you try to send 0 size.

screen shot 2017-08-09 at 5 55 09 pm

screen shot 2017-08-09 at 5 54 03 pm

The last commit should fix - thanks for pointing this out!

Same output still. Broken image at top left corner.

Shows error : not scaling solution: zero size detected

error messages are gone, but is there a better representation possible?

maybe like just the labels in the center without the circles

That last commit should fix (0 sized sets won't be displayed at all)

@benfred Zero values is causing errors again. I looked at the codebase, and the fix you added in February isn't in the current version of venn.js

Awesome library by the way.