Changed so that chart works and displays in div