Skip to main content



      Home
Home » Archived » BIRT » Including JavaScript in SVG Chart
Including JavaScript in SVG Chart [message #212350] Thu, 18 January 2007 10:47 Go to next message
Eclipse UserFriend
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 #212638 is a reply to message #212350] Fri, 19 January 2007 01:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.schepers.cc

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
Re: Including JavaScript in SVG Chart [message #213126 is a reply to message #212638] Mon, 22 January 2007 14:13 Go to previous message
Eclipse UserFriend
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
Previous Topic:PDF Report as PDF does not work
Next Topic:birt 2.1.1 runtime sql column alias problem
Goto Forum:
  


Current Time: Wed May 28 21:18:45 EDT 2025

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

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

Back to the top