Use svg element's parent width to initialise chart settings so it works across browsers