quantmind / giotto

d3 based visualization library - svg & canvas
https://giottojs.org
BSD 3-Clause "New" or "Revised" License
14 stars 4 forks source link

Better margin option #7

Closed lsbardel closed 9 years ago

lsbardel commented 9 years ago

Currently margins are specified by the option margin, for example

margin: {left: 10, right: 10, top: 20, bottom: 20}

We want to be able to set them as a percentage too

margin: {left: '5%', right: '5%', top: '6%', bottom: '6%'}

Useful for creating nested charts and visualizations which resize gracefully