clickData based on click on bars of Bar Graph

I want to display a data-frame table based on the clicks on particular bars of the bar graph. I tried using clickData in the callback but nothing happens. Please Help.