a function to describle number ranges in charts