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

强颜欢笑 提交于 2019-12-10 18:54:27

问题


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?


回答1:


I'd override the renderer's getItemShape() method or invoke setSeriesShape() as required. There's an example here. ShapeUtilities is handy, too.



来源:https://stackoverflow.com/questions/7701749/is-there-a-way-to-change-the-shape-size-in-a-jasperreports-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!