adding infrastructure for chart component to pull data from cors enabled rest api