Dynamically building and updating Histograms with JFreeChart

Posted by job on Stack Overflow See other posts from Stack Overflow or by job
Published on 2010-03-13T18:49:36Z Indexed on 2010/03/13 18:55 UTC
Read the original article Hit count: 603

Filed under:
|
|

I've got a stream of incoming data that I would like to plot using a simple histogram. I don't know the range of values, or the proper resolution or bin width to use for the histogram.

SimpleHistogramDataset provides some of this functionality, but I don't want to have to deal with catching exceptions in order to add new bins if the new value isn't covered. In addition, it doesn't easily allow me to rebuild the histogram using a different bin width (perhaps an integer multiples of some initial set width).

Is there an easy way to accomplish this with JFreeChart or some alternate charting library, or am I going to have to write my own class here?

© Stack Overflow or respective owner

Related posts about java

Related posts about jfreechart