knowm / XChart

XChart is a light-weight Java library for plotting data.
http://knowm.org/open-source/xchart
Apache License 2.0
1.48k stars 394 forks source link

ChartZoom has bug! #854

Closed mrsdk06 closed 1 month ago

mrsdk06 commented 1 month ago

Describe the bug When I turn on Allow zooming in and set isZoomEnabled = true , a button Restzoom appears with zoomset on it, but the window is immediately redrawn to its original state, and the button also shows。

so I revise code, the wrong is not show, Problem child。

To Reproduce

 if (chart instanceof XYChart && ((XYStyler) chart.getStyler()).isZoomEnabled()) {
      if (chartZoom != null) {
        chartZoom.paint(g);
      }
    }

Are there any plans to revise this issue?