Skip to main content



      Home
Home » Archived » BIRT » Value of the legend label is cut
Value of the legend label is cut [message #255998] Mon, 24 September 2007 07:59 Go to next message
Eclipse UserFriend
Hi,

I have a chart and I colors the chart and legend depending on "ID" in my
dataset. After this, I change the value of my legend label, instead of ID
I will show the belowing name. I do that in beforeDrawLegendItem-Method of
my ChartEventHandler:
lerh.getLabel().getCaption().setValue(RtsUtil.getNotificatio nName(ID));
The problem is that in the created picture of the chart I see only few
letters of LegendItem. I think it reserves the place for value (ID)
renders the picture and then if I change the value there is no place for
that. Can anybody help me to do it so, that I can see the whole value
anyway?
Re: Value of the legend label is cut [message #256233 is a reply to message #255998] Wed, 26 September 2007 07:56 Go to previous messageGo to next message
Eclipse UserFriend
This is a known issue, the script is executed after the layout computations
are done. We are looking to improve it, but in the meantime, you just need
to allocate enough space before hand to make sure the new labels will fit.
Maybe by adding some spaces in your original values for instance.

Thanks,

David

"Reinhard" <reinhard.klausel@freenet.de> wrote in message
news:6c42a903c67e345fc68dbf146854fb50$1@www.eclipse.org...
> Hi,
>
> I have a chart and I colors the chart and legend depending on "ID" in my
> dataset. After this, I change the value of my legend label, instead of ID
> I will show the belowing name. I do that in beforeDrawLegendItem-Method of
> my ChartEventHandler:
> lerh.getLabel().getCaption().setValue(RtsUtil.getNotificatio nName(ID));
> The problem is that in the created picture of the chart I see only few
> letters of LegendItem. I think it reserves the place for value (ID)
> renders the picture and then if I change the value there is no place for
> that. Can anybody help me to do it so, that I can see the whole value
> anyway?
>
Re: Value of the legend label is cut [message #256428 is a reply to message #256233] Thu, 27 September 2007 03:04 Go to previous message
Eclipse UserFriend
Thanks David for your answer,

I resolved the problem in putting the legend below the chart, there is
enough space for LegendItem. But now I have the same problem on the left
side with DataPointLabel. I will post if I have answer to this.

Thanks,

Reinhard
Previous Topic:How to display multiple values for a date in chart
Next Topic:PDF output through servlet obtain blank PDFs
Goto Forum:
  


Current Time: Sun Nov 09 13:10:24 EST 2025

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

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

Back to the top