FusionCharts Forum: Data corruption with Fusion Charts - FusionCharts Forum

Jump to content

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

Data corruption with Fusion Charts

#1 User is offline   VWuser 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 24-April 09

Posted 24 April 2009 - 09:33 AM

We use Fusion charts > MSColumnLine3D (trial version) in our Flex application

The chart is created dynamically on user generated event. Once the chart is created, the screen data (unicode - utf 8) gets corrputed - the user sees junk characters. This behaviour is seen consistently when the chart gets created.

We confirmed the problem with Fusioncharts by removing the chart control from the action script and verified that the application data is shown correctly in flex controls.

Not sure if Fusion charts supports unicode data. If so, why are we getting this problem.

The as code below shows the creation logic:

{

 ....

var fus:FusionCharts = new FusionCharts();

fus.width = 900;
fus.height = 300;

fus.FCChartType="MSColumnLine3D";
fus.FCDataXML = event.result.toString();

this.ChartSection.removeChildAt(0); //remove label control..
this.ChartSection.addChild(fus);

...

}

Is there some help?

0

Other Replies To This Topic

#2 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 27 April 2009 - 05:47 AM

Hi,

In our labs the UTF 8 characters are woking fine.

Could you please send us thtr code the you are using?

Please attache here.

Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#3 User is offline   VWuser 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 24-April 09

Posted 28 April 2009 - 06:06 AM

Hi,

Thanx for your response. We have attached a sample war file which a Flex Application that loads some header fields from a JSP on click of a button. On click of another button an instance of Fusion Chart gets created and the data is loaded from an xml file.

After loading of the application and clicking on the button 'Fetch Data' retrives the German data and renders it. This works fine on any number of clicks. When 'Create Chart' button is clicked the chart gets created and renders the German data. Now if you click on the 'Fetch Data' button the data that gets rendered to the controls has junk characters.

Note:

The sample war is available inside the attached zip file - HttpSample.zip

Source files for the above sample is available in - Source.zip

Request you to provide a solution for this issue.

Regs,

VWUser

Attached File(s)


0

Other Replies To This Topic

#4 User is offline   VWuser 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 24-April 09

Posted 28 April 2009 - 06:15 AM

Hi,

Thanx for your response. We have attached a sample war file which a Flex Application that loads some header fields from a JSP on click of a button. On click of another button an instance of Fusion Chart gets created and the data is loaded from an xml file.

After loading of the application and clicking on the button 'Fetch Data' retrives the German data and renders it. This works fine on any number of clicks. When 'Create Chart' button is clicked the chart gets created and renders the German data. Now if you click on the 'Fetch Data' button the data that gets rendered to the controls has junk characters.

Note:

The sample war is available inside the attached zip file - HttpSample.zip

Source files for the above sample is available in - Source.zip

Request you to provide a solution for this issue.

Regs,

VWUser

Attached File(s)


0

Other Replies To This Topic

#5 User is offline   VWuser 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 24-April 09

Posted 29 April 2009 - 02:44 AM

Dear Sudipto Choudhury,

We have attached a sample for simulating the UTF-8 characters issue in our earlier mail and would like to know if you need anyother information. We would also like to know the current status of the issue as we wanted to buy the license based on this test.

Regs,

VWUser

0

Other Replies To This Topic

#6 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 29 April 2009 - 03:57 AM

Hi,

Our Flex developer is looking into this and would let you know.

Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#7 User is offline   rishin.goswami 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 29-April 09

Posted 29 April 2009 - 06:31 AM

Hi,
You can solve your problem by encoding the chart XML file with a byte order mark (BOM). To get your sample application running, please replace the DataXML.xml file with the one provided here. You can learn more about using UTF-8 chracters in FusionCharts for Flex in the documentation at Special Cases > Multilingual Characters in Charts.

Attached File(s)


Regards,



Rishin Goswami

FusionCharts Team
0

Other Replies To This Topic

#8 User is offline   VWuser 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 24-April 09

Posted 30 April 2009 - 02:47 AM

Dear Rishin Goswami,

Thanx for your response. We have used the DataXML.xml file which you have attached and it works fine. We have another case where the data for the chart is returned by a JSP and it has UTF-8 characters in it and gets loaded to the chart using FCDataXML property.

So can you tell us how to add BOM data to the chart data which is returned in the JSP.

Regs,

VWUser

0

Other Replies To This Topic

#9 User is offline   VWuser 

  • Forum Newbie
  • Group: Members
  • Posts: 6
  • Joined: 24-April 09

Posted 02 May 2009 - 06:11 AM

We have gone thru many articles regarding this issue and the solution given is for dataURL option where the chart data is loaded using a XML file which has BOM mark in it.

So can anyone pls confirm that UTF-8 data can be loaded only using FCDataURL property from a xml file and not by using FCDataXML property from a datasource like JSP file.

As the data which has to be rendered is dynamic we have followed the approach of calling a JSP file which returns the UTF-8 data. If this approach wont work we have to change our implementation to create a physical xml file and load the chart data using FCDataURL propery.

Regs,

VWUser

0

Other Replies To This Topic

#10 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 04 May 2009 - 08:37 AM

Hi,

There can be many ways.

1. Have the file containing the JSP code having BOM.

2. If not add BOM manually using JSP code.

response.setContentType( "text/xml; charset=UTF-8" );
OutputStream outs = response.getOutputStream();
outs
.write( new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF} );
outs.flush();

Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#11 User is offline   Rajroop 

  • FusionCharts Team
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1803
  • Joined: 19-May 09

Posted 03 July 2009 - 07:41 AM

Hello VWUser :(,



We are really excited to announce the release of FusionCharts for Flex v1.1 featuring the following:



- 12 new chart types: 7 new gauges including Angular gauge, LED gauge and Linear gauge, Spark chart and Bullet graphs have been added.

- All the gauges can fetch data in real-time and come with alert managers and message loggers.

- All the charts and gauges can now be natively exported as images and PDFs.

- The data for all the charts can be exported as CSV.

- Data sets can now have custom text labels instead of numeric values.

- The charts can handle a lot more events to help you manipulate them better.

- Trendlines can also have custom tool-text.

- Custom color palettes can be defined for the data plots.



Learn more about it from www.fusioncharts.com/flex. and learn what's new in FusionCharts for Flex from http://www.fusioncha...ionHistory.asp.



Existing customers can upgrade to the new version from www.fusioncharts.com/PUC.
Regards,

Rajroop Bhaduri

FusionCharts Team

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Follow us @Twitter
0

Other Replies To This Topic

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