Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

labels in the pie section of piechart

 
Sudhakar Rao
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I am using jreechart for generating pie charts. I am a newbie to this technology. I would like to know, Is it possible to add labels in the pie section of the chart. If possible can any body guide with some sample code.

Thanks in Advance
Sudhakar
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean something like this:



If so, have a look at these pie chart demos.
[ April 21, 2008: Message edited by: Ulf Dittmer ]
 
Sudhakar Rao
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking some thing like above only, but with slight difference. I want labes in the chart pie section only, not outside which means, I want the labels in the colored plot section of the pie chart only. Hope I cleared mentioned my requirement.
Thanks
Sudhakar
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you creating the chart? Most of the ChartFactory.createXYZChart methods have a "showLegend" parameter that can be used to turn the legend on and off.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic