Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Chart API - How to make legend appear on top of the chart
Chart API - How to make legend appear on top of the chart [message #908217] Wed, 05 September 2012 00:45 Go to next message
Elena Laskavaia is currently offline Elena LaskavaiaFriend
Messages: 2
Registered: July 2009
Junior Member
I cannot figure out how to make legend block of the chart to appear on top of the chart, vs on the left. I tried different combinations of legend.setColumn, setRow and setColumnSpan and it did not seems to have any effect on layout...
Re: Chart API - How to make legend appear on top of the chart [message #908599 is a reply to message #908217] Wed, 05 September 2012 16:15 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Try:

Legend lg = cwaBar.getLegend();
lg.setItemType(LegendItemType.CATEGORIES_LITERAL);
lg.setPosition(Position.ABOVE_LITERAL);

Jason

On 9/4/2012 8:45 PM, Elena Laskavaia wrote:
> I cannot figure out how to make legend block of the chart to appear on
> top of the chart, vs on the left. I tried different combinations of
> legend.setColumn, setRow and setColumnSpan and it did not seems to have
> any effect on layout...
Previous Topic:Max y-axis value on split bar chart
Next Topic:scale on Y axis
Goto Forum:
  


Current Time: Thu Apr 25 15:38:06 GMT 2024

Powered by FUDForum. Page generated in 0.03685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top