check for String x-axis value types and throw excpetion if it is NOT a bar chart type