[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] changing x-axis title position of a chart

hi,

i have a chart which created with BIRT API.
now i wanna change the Position of my chart.
what i have tried is

Axis x = chart.getPrimaryBaseAxes()[0];
x.getTitle().setVisible(true);
FontDefinition fontDef = FontDefinitionImpl.create("Arial", 8f, false,
				false, false, false, false, 0.0, null);
x.getTitle().getCaption().setFont(fontDef);
x.getTitle().getCaption().setValue("time");

x.setTitlePosition(Position.ABOVE_LITERAL);

Position.ABOVE_LITERAL and Position.BELOW_LITERAL works but Position.RIGHT_LITERAL and Position.LEFT_LITERAL don't work.
i want to set title position on the right side of x-axis.


|
|
|
|
|________________
x-title (now)
what i want:


|
|
|
|
|________________ x-title
regards,
cem