intermediate commit for adding charting functions
fixed up json formatting and added functions to get related charts for overview screen