Hi,
How do I add the values of x-axis & y-axis in my legend.
Eg: If my legend displays values of Country like India (value of X : 50, Y : 100), I want the legend to display India(x:50,y:100).
Can somebody help me please...
Thanx in advance.
Search found 2 matches
- Thu Oct 30, 2003 1:53 pm
- Forum: JFreeChart
- Topic: How to add data in legends
- Replies: 0
- Views: 2218
- Thu Oct 30, 2003 1:49 pm
- Forum: JFreeChart
- Topic: legend problem?
- Replies: 3
- Views: 7199
Re: legend problem?
Hi, try this, Step 1: Create an object of JfreeChart: JFreeChart jfreechart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT,plot,true); the legend is displayed if Step1 is done. Incase it does not, go for Step2 also. Step2: jfreechart.setLegend(Legend.createInstance(jfreechart)); good luck :)