Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » how to set pie chart identifier font
how to set pie chart identifier font [message #687779] Thu, 23 June 2011 04:00 Go to next message
Dave Missing name is currently offline Dave Missing name
Messages: 20
Registered: October 2010
Junior Member
PieSeries ps = (PieSeries) PieSeriesImpl.create( );
ps.getLabel( ).getCaption( ).setColor( ColorDefinitionImpl.RED( ) );
ps.getLabel( ).setBackground( ColorDefinitionImpl.CYAN( ) );
ps.getLabel( ).setVisible( true );
ps.setSeriesIdentifier( "sales 2010" );

How to set font for pie chart identifier "sales 2010"?
Now it shows as bold big font. I like it to be regular and smaller.

Thanks
Dave
Re: how to set pie chart identifier font [message #687921 is a reply to message #687779] Thu, 23 June 2011 10:14 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Try:

ps.getTitle().getCaption().setColor(ColorDefinitionImpl.RED( ));
ps.getTitle().getCaption().getFont().setSize(10);
ps.getTitle().getCaption().getFont().setBold(false);

Jason
Re: how to set pie chart identifier font [message #687928 is a reply to message #687921] Thu, 23 June 2011 10:35 Go to previous message
Dave Missing name is currently offline Dave Missing name
Messages: 20
Registered: October 2010
Junior Member
Hi Jason,
Your suggestions worked great.

Thanks
Dave
Previous Topic:Outputting Fixed-width file using BIRT reporting tool
Next Topic:Newbie: Embed Image from URL
Goto Forum:
  


Current Time: Tue Jul 29 19:14:01 EDT 2014

Powered by FUDForum. Page generated in 0.01530 seconds