JeremyMcCormick / jfreechart-aida-experimental

1 stars 4 forks source link

Implement support for variable bin widths in 2D histograms #17

Closed JeremyMcCormick closed 9 years ago

JeremyMcCormick commented 10 years ago

This needs to be done for both the box plot and color map rendering. It should not be too difficult to determine the size of the bin to draw from the X and Y values of the current data item from within the renderer.

JeremyMcCormick commented 10 years ago

There are a number of changes that need to made in order to fully support this:

1) The Histogram2DAdapter needs to implement IntervalXYZDataset so that the bin edges are available to the renderer in its drawItem() method.

2) The XYBoxRenderer should be changed so that the box size is not fixed but read from the upper and lower X and Y values of the item being plotted. Probably it would be best to implement this behavior in another class and replace the existing one when this new implementation works correctly.

3) Displaying with the color map style will require a new renderer because the XYBlockRenderer does not seem to support variable size blocks.

JeremyMcCormick commented 9 years ago

I believe this is supported now.