benfred / venn.js

Area proportional Venn and Euler diagrams in JavaScript
MIT License
1.04k stars 218 forks source link

Add width / height arguments #63

Closed bf closed 8 years ago

bf commented 8 years ago

Could we make width and height customizable for the SVG element? I don't find any option to do it.

benfred commented 8 years ago

You should be able to set the width/height on the VennDiagram object like:

var chart = venn.VennDiagram()
                 .width(600)
                 .height(500);

See examples/dynamic.html for a demo

bf commented 8 years ago

Thanks!

JackConnor commented 6 years ago

Thanks! This is a big one, it might make sense to throw this into the main documentation. Great job!