Including JavaScript in SVG Chart [message #212350] |
Thu, 18 January 2007 10:47  |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Hi-
We're using BIRT in a J2EE environment to generate reports, including
SVG charts.
We are trying to extend the interactivity of the SVG charts via a custom
JS lib. To do this, we need to somehow include either the script itself
or a reference to and external .js file into the body of the chart SVG file.
The code appears to support the concept using a property called
"javascript.ref.list" and "javascript.code.list", but it's not obvious
how you use those variables from a servlet.
Can anyone show us an example of this working, or give us a clue how to
manage it?
Thanks-
-Doug
|
|
|
|
Re: Including JavaScript in SVG Chart [message #213126 is a reply to message #212638] |
Mon, 22 January 2007 14:13  |
Eclipse User |
|
|
|
This needs to be set on the SVG device renderer. Unfortunately, scripting
from a BIRT report doesn't give you access to this renderer class. Please
file an enhancement in bugzilla to have a new chart script method (or parameter)
to access the device renderer and set some properties on it. This could be
useful in some other instances like for changing the dpi resolution of the
generated chart.
Thanks,
David
> Hi-
>
> (Sorry if this goes through twice, I'm not sure my settings were
> correct yesterday.)
>
> We're using BIRT in a J2EE environment to generate reports, including
> SVG charts.
>
> We are trying to extend the interactivity of the SVG charts via a
> custom JS lib. To do this, we need to somehow include either the
> script itself or a reference to and external .js file into the body of
> the chart SVG file.
>
> The code appears to support the concept using a property called
> "javascript.ref.list" and "javascript.code.list", but it's not obvious
> how you use those variables from a servlet.
>
> Can anyone show us an example of this working, or give us a clue how
> to manage it?
>
> Thanks-
> -Doug
|
|
|
Powered by
FUDForum. Page generated in 0.03205 seconds