cleaning up how the swings are fetched. getting chart library ready