might have dynamic chart generation working