jfree / jfreechart

A 2D chart library for Java applications (JavaFX, Swing or server-side).
http://www.jfree.org/jfreechart/
GNU Lesser General Public License v2.1
1.22k stars 462 forks source link

Clone data item instead of creating new one to preserve class inheritance. #363

Closed devaskim closed 1 year ago

devaskim commented 1 year ago

To store a bit more data we extend TimeSeriesDataItem class, but on calling TimeSeries.addAndOrUpdate() we lose inheritance.