diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-02-11 20:37:33 -0200 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-02-11 20:37:33 -0200 |
commit | 893380be1bde766736c1e099731bacb87f239a3a (patch) | |
tree | d02b188f44102178847c9ba443774c64cedfd13d /main.cpp | |
parent | b722ac36aef378ed9837f7f4595b4ce2d255f4ac (diff) |
BarChart: correctly displays current selection.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |