create and test function for single info chart