aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index a124ac3..6eed197 100644
--- a/main.cpp
+++ b/main.cpp
@@ -212,6 +212,8 @@ int main(int argc, char **argv)
&cpSelectionHandler, &SelectionHandler::setSelection);
QObject::connect(&cpSelectionHandler, &SelectionHandler::selectionChanged,
m->cpPlot, &Scatterplot::setSelection);
+ QObject::connect(&cpSelectionHandler, &SelectionHandler::selectionChanged,
+ m->cpBarChart, &BarChart::setSelection);
SelectionHandler rpSelectionHandler(X.n_rows - cpIndices.n_elem);
QObject::connect(m->rpPlot, &Scatterplot::selectionInteractivelyChanged,
@@ -220,6 +222,8 @@ int main(int argc, char **argv)
&rpSelectionHandler, &SelectionHandler::setSelection);
QObject::connect(&rpSelectionHandler, &SelectionHandler::selectionChanged,
m->rpPlot, &Scatterplot::setSelection);
+ QObject::connect(&rpSelectionHandler, &SelectionHandler::selectionChanged,
+ m->rpBarChart, &BarChart::setSelection);
// Brushing between bar chart and respective scatterplot
BrushingHandler cpBrushHandler;