Using JFreeChart Scatter Plots is there a Way to Subdivide Styles for Data Sets?

You might consider the approaches mentioned here. The first implements DrawingSupplier, as shown here: class DefaultDrawingSupplier implements DrawingSupplier… The second extends DefaultDrawingSupplier, as shown here, to achieve a similar effect. Paint[] paintArray = {…}; plot.setDrawingSupplier(new DefaultDrawingSupplier( paintArray, … DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE)); Of course, you can always override getItemPaint(), as shown here.

JFreeChart MouseListener doesn’t resolve chart elements

Your exemplary renderer has the correct geometry when run from Swing, as shown below. I’m unsure why things are awry with SWT, but this result may narrow the search. import java.awt.Color; import java.awt.EventQueue; import java.awt.Paint; import java.util.Random; import javax.swing.JFrame; import org.jfree.chart.ChartMouseEvent; import org.jfree.chart.ChartMouseListener; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.DateAxis; import org.jfree.chart.axis.DateTickMarkPosition; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.entity.ChartEntity; … Read more