0

I have a jfreechart with symbols and line drawn. The symbols are plotted so that the top of the symbol touches the line. I'm not sure which is in the correct position, the line or the symbol. But, what should be changed so that the center of the symbol is on the line?

1 Answers1

1

The static method DefaultDrawingSupplier.createStandardSeriesShapes() defines the standard Shape sequence. On inspection, it's apparent that each Shape is symmetric about the origin. In contrast, it sounds like your Shape includes the origin as a point on its boundary. An sscce and screenshot may clarify the matter. ShapeUtilities, illustrated here, includes more examples.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045