a funtion to display numbers in charts