finally managed to add in a chart