corner case handling in case of blank string instead of numbers for stack and bar graphs