Search code examples
chartsjasper-reportsjfreechart

Is there a way to change the shape size in a JasperReports chart?


I'm building a Time series based chart that graphs Time -> double value. The chart contains at least 230 points. If I use the "show lines" option the graph doesn't display any lines. If I disselect the "show shapes" the shames disappear, but there are no dots to where the data is.

How would I change the shapes in the chart to a circular point?

enter image description here


Solution

  • I'd override the renderer's getItemShape() method or invoke setSeriesShape() as required. There's an example here. ShapeUtils is handy, too. Also consider a custom DrawingSupplier, cited here.