fleshed out API endpoint and refactored charting system in preparation for displaying multiple charts at once