I used the barPlot:barWasSelectedAtRecordIndex method to add annotation to every bar but it didn't worked and I used the same code in my method and created the plot object manually and assigned it value of the actual plot as shown belowI used the barPlot:barWasSelectedAtRecordIndex