adds chartResize method to adjust svg element height after redering