removed duplicate code
refactored pie chart to new js vis api
visualizations trigger renderingComplete
checking chart height only after rendering is complete