    chart_view->chart()->axisX()->setRange(begin, end);
    updateAxisY();
  }
  
  void ChartWidget::rangeChanged(qreal min, qreal max) {
    auto axis_x = dynamic_cast<QValueAxis *>(chart_view->chart()->axisX());
    if (axis_x->min() != min || axis_x->max() != max) {
      axis_x->setRange(min, max);
    }
    updateAxisY();
  }
 
</s> remove   chart_view->chart()->axisX()->setRange(begin, end);
 </s> add   chart()->axisX()->setRange(begin, end); </s> remove void ChartWidget::updateAxisY() {
  const auto axis_x = dynamic_cast<QValueAxis *>(chart_view->chart()->axisX());
  const auto axis_y = dynamic_cast<QValueAxis *>(chart_view->chart()->axisY());
 </s> add void ChartView::updateAxisY() {
  const auto axis_x = dynamic_cast<QValueAxis *>(chart()->axisX());
  const auto axis_y = dynamic_cast<QValueAxis *>(chart()->axisY()); </s> remove // LineMarker
 </s> add   if (show) {
    const auto plot_area = chart()->plotArea();
    float x = std::clamp((float)ev->pos().x(), (float)plot_area.left(), (float)plot_area.right());
    track_line->setLine(x, plot_area.top(), x, plot_area.bottom()); </s> remove   QLineSeries *series = (QLineSeries *)chart_view->chart()->series()[0];
 </s> add   QLineSeries *series = (QLineSeries *)chart()->series()[0]; </s> remove class ChartView : public QChartView {
  Q_OBJECT
 </s> add   void updateSeries();
  void rangeChanged(qreal min, qreal max);
  void updateAxisY();
  void updateState();
void ChartView::rangeChanged(qreal min, qreal max) {
  auto axis_x = dynamic_cast<QValueAxis *>(chart()->axisX());
    chart_view->chart()->axisX()->setRange(begin, end);
    updateAxisY();
  }
  
void ChartView::rangeChanged(qreal min, qreal max) {
  auto axis_x = dynamic_cast<QValueAxis *>(chart()->axisX());
void ChartView::rangeChanged(qreal min, qreal max) {
  auto axis_x = dynamic_cast<QValueAxis *>(chart()->axisX());
    if (axis_x->min() != min || axis_x->max() != max) {
      axis_x->setRange(min, max);
    }
    updateAxisY();
  }
keep keep keep keep replace replace keep keep keep keep keep
 Cabana: display the (x,y) values while MouseMove on the chart (#26064) 
tools/cabana/chartswidget.cc