knowm / XChart

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

SelectionZoom and measurement functions have been removed #663

Open landret opened 2 years ago

landret commented 2 years ago

Hi, SelectionZoom and several other handful measurement functions are no longer accessible in the latest version (3.8.1).

I am developing a data acquisition software and I use xchart v3.6.4 to display real time measurement on a chart. I customized the zoom by using a child of SelectionZoom:

I also don't display all the data at zoom min to limit CPU usage. When zooming in, more data are added to get more details. This behavior is not possible with the latest version. Indeed, there are only 4 setters/getters now to customize the zoom. zoom

Some handy measurement functions like Chart.getChartXFromCoordinate() are no longer accessible as well. Those functions are required for the zoom customization. They are also handy to allow user to make measurement on the data (average value calculation, distance between 2 points...)

So it would be great to have access again to:

Thanks.

landret commented 2 years ago

Hi, could you please make the following feature accessible again :

Else I will be stuck with version 3.6.4. Thanks.