Skip to main content



      Home
Home » Archived » BIRT » Chart title at runtime
Chart title at runtime [message #165829] Tue, 30 May 2006 20:45 Go to next message
Eclipse UserFriend
Originally posted by: dtsjunk.fastmail.fm

Hi I am using Birt 2.0.1 and I have a question about setting the title of
a chart in the beforeGeneration method.
I have a table that is bound to a scripted dataset and a chart that is
also bound to a different scripted dataset.

Table has 2 rows first row is based on object from 1st dataset and second
row contains a dual axis line chart that is populated based on the
value of the 1st row. That is working fine. I want to set the title of the
chart to the value in the first row and i can't seem to
figure out how. I have tried setting a report parameter in the expression
builder of the first row and accessing it via
context.getExternalContext().getScriptable().getParameterVal ue() and it
always seems to be null.

Also tried using a GlobalVariable and that to is also null.

Any help or pointer to where I am going wrong.

Thanks
DT
Re: Chart title at runtime [message #165855 is a reply to message #165829] Tue, 30 May 2006 22:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dtsjunk.fastmail.fm

Update:
When I view the report in pdf it works fine the chart title gets displayed
correctly. However when I view as html the title remains blank.
Re: Chart title at runtime [message #166035 is a reply to message #165829] Wed, 31 May 2006 10:17 Go to previous message
Eclipse UserFriend
in the beforeGeneration method of chart scripting, you can access the
dataset inside the series and get the first value, then set it in the title.

Thanks,

David

"dt" <dtsjunk@fastmail.fm> wrote in message
news:7150eb0abfb5a4bf53116ddcbefc2f47$1@www.eclipse.org...
> Hi I am using Birt 2.0.1 and I have a question about setting the title of
> a chart in the beforeGeneration method.
> I have a table that is bound to a scripted dataset and a chart that is
> also bound to a different scripted dataset.
>
> Table has 2 rows first row is based on object from 1st dataset and second
> row contains a dual axis line chart that is populated based on the
> value of the 1st row. That is working fine. I want to set the title of the
> chart to the value in the first row and i can't seem to figure out how. I
> have tried setting a report parameter in the expression builder of the
> first row and accessing it via
> context.getExternalContext().getScriptable().getParameterVal ue() and it
> always seems to be null.
>
> Also tried using a GlobalVariable and that to is also null.
>
> Any help or pointer to where I am going wrong.
>
> Thanks
> DT
>
Previous Topic:How to create Bar chart using Chart API
Next Topic:Running Group Counter
Goto Forum:
  


Current Time: Thu May 08 08:47:44 EDT 2025

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

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

Back to the top