Simple-charts
Simple-charts copied to clipboard
Recode the margins and heights to be object orientated
Make it like this to make it more concise
configheight:{small:50, medium:100} configmargins:{small:[0,20,0,20],medium:[0,40,0,40]}
var browserwidth = getwidth() //return small or medium or large depending on breakpoints height = configheight["browserwidth"] margin = configmargins["browserwidth"]