What I would like to do is explore a data set by clicking on elements in a BarChart. I have some existing code which uses a manipulate which I was hoping to modify.
classification = {"class1", "class2", "class3"};
cause = {"cause1", "cause2", "cause3", "cause4", "cause5"};
dataSet = Table[{classification[[RandomInteger[{1, 3}]]],
cause[[RandomInteger[{1, 5}]]], RandomReal[{0, 10}]}, {i, 1, 50}];
(*generate the classification BarChart*)
byClass = GatherBy[dataSet, #[[1]] &];
durationByClass = {First[#][[1]], Total[#[[All, 3]]]} & /@ byClass;
classChart = BarChart[durationByClass[[All, 2]],
ChartLabels -> durationByClass[[All, 1]],
ChartStyle -> {LightGray, LightGray, LightGray},
PlotLabel -> "Data by Classification", ImageSize -> 400];
(*a function to get the cause chart*)
getCauseChartExample[classificationIndex_] := Module[{},
durationByCause = GatherBy[
Select[dataSet, #[[1]] ==
classification[[classificationIndex]] &], #[[2]] &];
plotData = {First[#][[2]], Total[#[[All, 3]]]} & /@ durationByCause;
BarChart[plotData[[All, 2]], ChartLabels -> plotData[[All, 1]],
ChartStyle -> LightGray,
PlotLabel -> classification[[classificationIndex]] <> " by Cause",
ImageSize -> 400]
]
Manipulate[Row[{classChart, getCauseChartExample[classIndex]}], {classIndex, {1,2, 3}}]
The output looks like this;

I would like to replace the Manipulate with the ability to mouse click the bars on the chart on the left and have the corresponding chart display on the right.