FusionCharts Forum: Just "Chart." on page , no graph - FusionCharts Forum

Jump to content

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

Just "Chart." on page , no graph

#1 User is offline   Gru 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 05-July 09

Posted 05 July 2009 - 04:53 PM

Weird problem and i cant seem to work out what it is.



The page just says "Chart." and no graphs are show.



I generate the xml from a php array and feed it to chartrenderer using "$strXML".



If is copy/paste the XML to a file and use that file to feed the renderer then everything works.

Just using a variable breaks everything.



Any idea what this could be ?



The source bit from the html page is attached.



#edit : typo's

Attached File(s)

  • Attached File  test.txt (3.4K)
    Number of downloads: 19

0

Other Replies To This Topic

#2 User is offline   Gru 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 05-July 09

Posted 05 July 2009 - 04:59 PM

Here is the code used to generate the xml.



Nevermind.... that bit of code is full of xml < > tags so wont show anything at all :)
0

Other Replies To This Topic

#3 User is offline   Rajroop 

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

Posted 06 July 2009 - 01:47 AM

Hello,



Welcome to the FusionCharts Forum. :)



Could you send us your XML(.xml) as an attachment?



Looking forward to your reply. :)
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

#4 User is offline   Gru2 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 06-July 09

Posted 06 July 2009 - 06:02 AM

Thanks for the reply. Had some trouble with my account so posting from a new one.

XML file is attached.

Attached File(s)

  • Attached File  new.xml (3.59K)
    Number of downloads: 13

0

Other Replies To This Topic

#5 User is offline   Rajroop 

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

Posted 06 July 2009 - 07:08 AM

Hello,



Could you please confirm whether you have the fusioncharts.js file included into your HTML code?



Looking forward to your reply. :)
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

#6 User is offline   Gru2 

  • Forum Newbie
  • Group: Members
  • Posts: 2
  • Joined: 06-July 09

Posted 06 July 2009 - 07:34 AM

As i am at work atm its hard to check.

But afaik it should be listed in the html. You can check the test i am working on at :

http://coppie.is-a-geek.org/healparse.php

This is the version that works with the XML file on the server. Once i try and make it use the generated string ( $strXML as used in the examples ) it just diplays "Chart." Please dont look at the php errors :), the script has bad error checking atm as i am fiddling with it. The errors are generated due to the fact the parsing script has no input.

The chart is , as i mentioned, 'hardcoded' with http://coppie.is-a-geek.org/new.xml.

 

0

Other Replies To This Topic

#7 User is offline   Rajroop 

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

Posted 06 July 2009 - 08:03 AM

Hello,



Could you please make sure there are no new line characters in your $strXML variable?

If so, could you please remove it and try again?



:)
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

#8 User is offline   Gru 

  • Forum Newbie
  • Group: Members
  • Posts: 3
  • Joined: 05-July 09

Posted 06 July 2009 - 12:48 PM

I removed any newline chars that were there. But allas it didnt fix anything yet.



Included a few files you might be able to check for me.



new2.xml = the seemingly valid xml file i use if i hardcode it in the php script, chart displays

html-test1 = the html file that fails ( .txt extension is due to attachment limits )

html-test2 = the html file that works ( references new2.xml )

php-code.txt = bit of the php code used to generate the strXML



I also looked at the renderchart syntax :



echo renderChartHTML("example.swf", "Data/Data.xml", "", "myFirst", 600, 300);



versus



echo renderChartHTML("example.swf", "", $strXML, "myNext", 600, 300);



Fixed the syntax to this but didnt help.





Might there be some special way to encode the $strXML ? Or might the data be too large to pass ?

If i have to make files for each pass / form submit i would go crazy =)

Attached File(s)


0

Other Replies To This Topic

#9 User is offline   Rajroop 

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

Posted 10 July 2009 - 09:28 AM

Hi,



Its the length issue (more than ~2000 characters in GET method not allowed) for IE based browsers!!:)



Please try once with firefox or safari.



Of course you can have a solution for long XML. You can add a JavaScript function and add the XML as a JS variable using PHP. Load a blank chart using only "<chart/>" and add a JS function FC_Rendered() which would be called when the chart is ready to be updated.



in this function use setDataXML() of the chart object to update the chart with this new big XML.



Make sure to add registerWithJS=1 as querystring to chart swf file name.

"example.swf?registerWithJS=1"
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