Restructured animation code and added basic chart outline