Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324348

Summary: SVG charts not showing consistently in HTML output format
Product: z_Archived Reporter: vivek <vivextra>
Component: BIRTAssignee: Birt-Chart-inbox <Birt-Chart-inbox>
Status: RESOLVED WORKSFORME QA Contact: Maggie Shen <lshen>
Severity: major    
Priority: P3 CC: bluesoldier, wyan
Version: 2.6.0   
Target Milestone: 3.7.0   
Hardware: All   
OS: Linux   
Whiteboard:

Description vivek CLA 2010-09-02 15:49:23 EDT
Build Identifier: Birt 2.6

We are upgrading our reports from Birt 2.3 to 2.6. We have couple dashboard reports that use html output type to integrate that in iFrame of a Flex application. The reports used to show up fine in 2.3, but after upgrading to 2.6 we have noticed the charts in the report (which are of SVG type) sometime do not show up. 

After discussion with Jason in the forum (http://www.birt-exchange.org/org/forum/index.php/topic/20421-chart-not-showing-up-in-html-format-for-birt-2-6/) we think this might be a bug in 2.6. 

Looks like there was some new code put into 2.5.2 to SVG interactivity - there is some togglevisibility function too - not sure if that's causing any issues.

Note, this is a problem only with html output with SVG chart. The chart shows up fine in other formats (document, pdf).

Reproducible: Sometimes

Steps to Reproduce:
1. Generate a html report with SVG chart
2. Click on refresh multiple times and sometimes the chart show up and sometimes it doesn't.
3.
Comment 1 vivek CLA 2010-09-09 14:19:30 EDT
Any update on this issue - this is really stopping as from moving forward with Birt 2.6 upgrade. We can not use jpeg as we need chart interactivity. The problem seems to be only with html output type with SVG charts. 

If there is any workaround then that could work for us too, until we wait for the complete fix.
Comment 2 vivek CLA 2010-09-17 14:37:31 EDT
Little more information that we have noticed comparing Birt 2.6 to 2.3, where the SVG charts were working fine,

1) In 2.3, the SVG charts were generating as PNG images using <map> tag in HTML format. 
2) In 2.6, the SVG charts are generating as SVG using <embed> tag in HTML

Looks like in Birt 2.3, SVG images always showed up as png. Is there a way to default to that behavior again in 2.6? We still want to keep the charts as SVG in rptdesign as if the browsers have the SVG viewer installed they will show up as SVG.
Comment 3 Xiaoying Gu CLA 2010-10-09 03:51:24 EDT
I can not reproduce this issue in our environment.
SVG chart always showup everytime I refresh in the browser.

If the issue here is:
>>We still want to keep the charts as SVG
in rptdesign as if the browsers have the SVG viewer installed they will show up
as SVG.

As you comments in the birt-exchange, you can add render option to your code:
renderOption.setSupportedImageFormats( "PNG;GIF;JPG;BMP;SWF")
,then SVG image will be rendered as png.
Comment 4 Xiaoying Gu CLA 2010-10-09 03:52:24 EDT
Set as worksforme based on comments #3