Work on chart generation