Home » Archived » BIRT » Scripted chart creation
Scripted chart creation [message #248953] |
Thu, 19 July 2007 13:52  |
Eclipse User |
|
|
|
Originally posted by: fabinader.gmail.com
Hi all,
I'm working on this report where I have, aside other things, to show N
charts, N as a report parameter. This parameter is in fact the top N
products, a parameter to the dataset where I retrieve the top N defectuous
products. Anyway, the point is that for each defectuous product I have to
display a chart showing its defect yeld indices.
Since N is a report parameter, I cannot predict the number of charts I
must include on the report, so I'm considering to insert the charts via
script on the beforeFactory() event on the report design. However, I'm not
managing to find any references to creating and inserting charts at event
handling via Javascript, only via Designer API in Java code. I know it is
possible to modify chart properties via Javascript, but I need to create N
different charts.
Does anybody knows if it is possible to do that? If it is possible,
does anybody knows how to do that?
Regards,
Fuad Abinader
|
|
|
Re: Scripted chart creation [message #249139 is a reply to message #248953] |
Fri, 20 July 2007 09:30   |
Eclipse User |
|
|
|
There are probably several ways to do this. You could for instance create a
list with a chart in it, binding your list to the top N products. Or if it's
a pie charts, you can use the y series grouping field with the product name,
and bind the chart the top N products, it will automatically create N pie
charts.
Doing it via scripting is maybe possible, but difficult. You would to have
one chart, then copy it N - 1 times and change its bindings each time.
Thanks,
David
"Fuad Abinader" <fabinader@gmail.com> wrote in message
news:206572cb437aba1eeb321c4e659e0a9d$1@www.eclipse.org...
> Hi all,
>
> I'm working on this report where I have, aside other things, to show N
> charts, N as a report parameter. This parameter is in fact the top N
> products, a parameter to the dataset where I retrieve the top N defectuous
> products. Anyway, the point is that for each defectuous product I have to
> display a chart showing its defect yeld indices.
> Since N is a report parameter, I cannot predict the number of charts I
> must include on the report, so I'm considering to insert the charts via
> script on the beforeFactory() event on the report design. However, I'm not
> managing to find any references to creating and inserting charts at event
> handling via Javascript, only via Designer API in Java code. I know it is
> possible to modify chart properties via Javascript, but I need to create N
> different charts.
> Does anybody knows if it is possible to do that? If it is possible, does
> anybody knows how to do that?
>
> Regards,
>
> Fuad Abinader
>
|
|
|
Re: Scripted chart creation [message #249223 is a reply to message #249139] |
Fri, 20 July 2007 14:25  |
Eclipse User |
|
|
|
Originally posted by: fabinader.gmail.com
Hi David,
Using a list with a group at product name worked perfectly, I just
created a chart insite the header of the group and voila! the grpahs per
product appeared. Thank you!
Regards,
Fuad Abinader
David Michonneau wrote:
> There are probably several ways to do this. You could for instance create a
> list with a chart in it, binding your list to the top N products. Or if it's
> a pie charts, you can use the y series grouping field with the product name,
> and bind the chart the top N products, it will automatically create N pie
> charts.
> Doing it via scripting is maybe possible, but difficult. You would to have
> one chart, then copy it N - 1 times and change its bindings each time.
> Thanks,
> David
> "Fuad Abinader" <fabinader@gmail.com> wrote in message
> news:206572cb437aba1eeb321c4e659e0a9d$1@www.eclipse.org...
>> Hi all,
>>
>> I'm working on this report where I have, aside other things, to show N
>> charts, N as a report parameter. This parameter is in fact the top N
>> products, a parameter to the dataset where I retrieve the top N defectuous
>> products. Anyway, the point is that for each defectuous product I have to
>> display a chart showing its defect yeld indices.
>> Since N is a report parameter, I cannot predict the number of charts I
>> must include on the report, so I'm considering to insert the charts via
>> script on the beforeFactory() event on the report design. However, I'm not
>> managing to find any references to creating and inserting charts at event
>> handling via Javascript, only via Designer API in Java code. I know it is
>> possible to modify chart properties via Javascript, but I need to create N
>> different charts.
>> Does anybody knows if it is possible to do that? If it is possible, does
>> anybody knows how to do that?
>>
>> Regards,
>>
>> Fuad Abinader
>>
|
|
|
Goto Forum:
Current Time: Mon Jul 21 21:02:00 EDT 2025
Powered by FUDForum. Page generated in 0.07367 seconds
|