Draw « Legend « JFreeChart Q&A





1. Drawing legend separate from Chart    jfree.org

I have a situation where I have two charts side by side. They use the same series so I want to only display one legend. I do not see a way in the current version of JFreeChart to do this. I really want a "CombinedSeriesCategoryPlot" but that's a much more aggresive request. Any suggestions? Joey

2. BoxAndWhiskers: where to add code to draw a legend?    jfree.org

I need to add a legend with a filled circle, a hollow ellipse, a horizontal line and the triangles for mean, median and outliers and a caption in the lower right corner of the chart. Where would add that in the code? I was thinking about overriding AbstractCategoryItemRenderer.drawOutline in the BoxAndWhiskersRenderer. Thanks Fred