문제

How to set such kind of points - small circles? I know we should set render and ShapeUtilies:

render.setSeriesShape(NumberOfSerie, ShapeUtilities.[something here]);

what should i write to get this circles? Documentation is here.

enter image description here

도움이 되었습니까?

해결책

The ShapeUtilities class has some methods to create shapes that aren't provided by default in Java2D. For circles though, you can just use:

Ellipse2D circle = new Ellipse2D.Double(-3.0, -3.0, 6.0, 6.0);

The circle here is centered on (0, 0) - JFreeChart relies on that because it will translate the position of the shape to (x, y) when drawing the chart.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top