gka / d3-jetpack

🚀 Nifty convenience wrappers that speed up your daily work with d3.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

margin and aspectRatio convention options

1wheel opened this issue · comments

aspectRatio: set height equal to width/aspectRatio

margin: 0 equivalent to margin: {top: 0, left: 0, bottom: 0, right: 0}

Not sure if these are better, I just don't like writing out the whole object...

margin: {t: 5, r: 10, b: 15, l: 20}

margin: [5, 10, 15, 20]