BIRT Exchange Forum: Chart SVGs not viewable in firefox. - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chart SVGs not viewable in firefox. Rate Topic: -----

#1 User is offline   TheCactus Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 18-May 12


Posted 18 May 2012 - 03:45 PM

I'm having trouble viewing chart SVG's in firefox (version 12). The borders are correct but the graph inside is shrunk to irrelevance. The good news is I found the code to fix the problem (on chart interactivity) which is:

document.getElementById("outerG").setAttribute("transform", "scale(1,1)")

However I can't find a spot that will automatically run this code (because having to click on all the graphs is unacceptable).

Has anyone run into this before? Or does anyone know where I automatically run a script after the page has rendered everything?
0

#2 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 21 May 2012 - 01:54 PM

Can you create a report with the sample db that shows this issue? I tried with FF 12 and it worked for me. BTW to run script client side you could always use s text element with <script> tags in it. Make sure to set its type to html.

Jason
0

#3 User is offline   TheCactus Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 18-May 12


Posted 21 May 2012 - 03:23 PM

View PostJasonW, on 21 May 2012 - 02:54 PM, said:

Can you create a report with the sample db that shows this issue? I tried with FF 12 and it worked for me. BTW to run script client side you could always use s text element with <script> tags in it. Make sure to set its type to html.

Jason

Hi Jason,

I'm currently trying to recreate the problem on the sampleDB. I think I just crashed my apache server running parallel tests. I'll keep trying. Thanks for the Ideas.

The script tag is another good idea. the element ID should be able to be hardcoded, but because the chart is inside table I wonder if that would get them all.
0

#4 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 22 May 2012 - 11:51 AM

If you give the chart a bookmark it will use this as the element id in html. So yo can get the chart by calling getElementById("whateveryourbookmarkis").

Jason
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users