Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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] Tue, 04 September 2012 20:45 Go to next message
Elena Laskavaia is currently offline Elena Laskavaia
Messages: 1
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 12:15 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
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...


Jason Weathersby

BIRT Exchange
Previous Topic:Max y-axis value on split bar chart
Next Topic:scale on Y axis
Goto Forum:
  


Current Time: Fri Apr 18 11:48:59 EDT 2014

Powered by FUDForum. Page generated in 0.04911 seconds