Histogram clickdata

I’m facing a problem I can’t solve. I have a histogram representing age values and I want to click on each bar to show a table with people whose age belongs to that interval. The problem is that the information retrieved on clickdata object is not enough the figure out which the age interval is. Is there a way to get the interval represented by each bar?