This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes problem in displaying text in item label in JFreeChart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "problem in displaying text in item label in JFreeChart" Watch "problem in displaying text in item label in JFreeChart" New topic
Author

problem in displaying text in item label in JFreeChart

Diwakar Chittora
Greenhorn

Joined: Aug 20, 2007
Posts: 23
Hi All,
I dont know whether this is the right place or not to post the queries related to jfreechart here .

I am facing a problem in displaying the text inside the item label in jfreeChart. I am trying to print the text in 2 lines one below the other at the top of each bar in waterfall chart.
Please find the code below :



the problem i am facing is it is neglecting the new line character . If any one knows how to display the text one below the other please help me out .

Thanks in advance .

Regards,
Diw
[ September 30, 2008: Message edited by: Rob Prime ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

Please Use Code Tags. That will preserve your formatting.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Diwakar Chittora
Greenhorn

Joined: Aug 20, 2007
Posts: 23
Friends,
Please help its urgent , please reply if anyone knows how to do it

Thanks in advance ,
Regards,
Diw
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9960
    
163

Diwakar,

Please BePatient.

In your example, i don't see your LabelGenerator being used anywhere. You seem to be using the org.jfree.chart.labels.StandardCategoryLabelGenerator:



[My Blog] [JavaRanch Journal]
 
Consider Paul's rocket mass heater.
 
subject: problem in displaying text in item label in JFreeChart
 
Similar Threads
Displaying scalable vector graphics on ibm aix
Dollar Symbol at Vertical Bar in StackedBarChar in JFreeChart
Need to hide borders for a barchart generated with Jfree chart except x and y axis
Problem in displaying waterfall chart with -ve values
how to use jfreechart in the jsp?