Hi Venkat,
If what you need is the index of the selected bar, then try this:
ObjectName.getChartObject().getSelectedPoint()
getSelectedDataSetIndices() - returns the dataset(legend) item index for the selected bar and for using this method you would have to register for chartSelectionEventHandler.
Regards,
Ria