Left-click and hold to create a rubber band zoom area which will
then be shown. Right-click to undo the last zoom change.
Note that this does not (yet) influence the other data aggregations.
auto layout = new QVBoxLayout(this);
layout->addWidget(m_chart);
setLayout(layout);
+
+ auto* coordinatePlane = dynamic_cast<CartesianCoordinatePlane*>(m_chart->coordinatePlane());
+ Q_ASSERT(coordinatePlane);
+ coordinatePlane->setRubberBandZoomingEnabled(true);
+ coordinatePlane->setAutoAdjustGridToZoom(true);
}
ChartWidget::~ChartWidget() = default;