-1

I have generated piechart which has subtitles i.e. Cash ,total,Security now problem is that subtitles are appearing bigger than actual piechart.

enter image description here

How can I set font to those subtitles ?

Satish N
  • 95
  • 1
  • 2
  • 10

1 Answers1

1

For Labels

StandardPieSectionLabelGenerator slbl = new StandardPieSectionLabelGenerator("{0} [{1}]",new DecimalFormat("#,##0"),new DecimalFormat("0%"));
piePlot.setLabelGenerator(slbl);

For the font

new Font("SansSerif", Font.ITALIC, 7)

I suggest you try to add that Font into the StandardPieSectionLabelGenerator

J Richard Snape
  • 20,116
  • 5
  • 51
  • 79
Vincent
  • 26
  • 1
  • Wekcome to Stack overflow. Thanks for the answer. I edited it a little to put the code into the standard format. You can format code blocks by leaving a blank line before them and indenting 4 spaces. For inline code, surround it with backticks. – J Richard Snape Jul 28 '15 at 23:32