Get selected index of attribute
Exception handling - BarChartData