Implemented the first draft of the API connections for generating charts