implemented makechart