How to change shape of square to dot in XYSplineRenderer Graph
jfreechart
Solution
To center a symmetric `Shape` over a given data point, you'll want to offset the top-left corner by the radius (half the diameter). For smaller dots,
setSeriesShape(0, new Ellipse2D.Double(-3, -3, 6, 6));
See also this related example using `ShapeUtilities`.
Problem
In JFreeChart `XYSplineRenderer` Graph I need to display small dots instead of small squares to display XY coordinates. How can I change the shape of these dots?