Changing shape of single point in JFreeChart XYPLot
ChartFactory.createScatterPlot() instantiates an XYLineAndShapeRenderer. You can replace the renderer with one that lets you selectively replace the Shape returned by getItemShape(), as shown below. xyPlot.setRenderer(new XYLineAndShapeRenderer(false, true) { @Override public Shape getItemShape(int row, int col) { if (row == 0 & col == N) { return ShapeUtilities.createDiagonalCross(5, 2); } else { return super.getItemShape(row, col); } … Read more