XYTitleAnnotation
XYTitleAnnotation
I need to add a legend inside my CategoryPlot chart. On searching the forum this experimental class was the only thing I could find for doing this sort of thing but is there any way to use it with a CategoryPlot?
This is the sort of thing I need:
http://i7.photobucket.com/albums/y260/- ... /chart.jpg
If there is no way to add in the legend in like that on a CategoryPlot (I can get it to appear outside of the chart, but need it inside really), is there any way to recreate that chart using an XYPlot?
http://i7.photobucket.com/albums/y260/- ... /chart.jpg
If there is no way to add in the legend in like that on a CategoryPlot (I can get it to appear outside of the chart, but need it inside really), is there any way to recreate that chart using an XYPlot?
Code: Select all
org.jfree.chart.annotations.CategoryTextAnnotation
Code: Select all
org.jfree.chart.labels.StandardCategorySeriesLabelGenerator
On first inspection it looks like CategoryTextAnnotation can only be used to add text into a plot? I guess I could use that to place the text directly on the line but more ideal would be to have a proper legend at the side, but inside the graph.
Any demo code for StandardCategorySeriesLabelGenerator?
Any demo code for StandardCategorySeriesLabelGenerator?