This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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: 19552
    
  16

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: 9343
    
111

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem in displaying text in item label in JFreeChart
 
Similar Threads
how to use jfreechart in the jsp?
Displaying scalable vector graphics on ibm aix
Dollar Symbol at Vertical Bar in StackedBarChar in JFreeChart
Problem in displaying waterfall chart with -ve values
Need to hide borders for a barchart generated with Jfree chart except x and y axis