Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in displaying text in item label in JFreeChart

 
Diwakar Chittora
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Use Code Tags. That will preserve your formatting.
 
Diwakar Chittora
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends,
Please help its urgent , please reply if anyone knows how to do it

Thanks in advance ,
Regards,
Diw
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic