set sparkling charts to use new options objects, change margin logic to not use typeof to check for undefined in other areas.