|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/7/2007 8:47:23 PM
Posts: 1,
Visits: 2
|
|
my problem is simple, this is the code that return me "Invalid XML Data": xmlData = "<chart caption='Sales By Media' subCaption='By Media' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' Units'>" _ & "<set label='Harpers ' Bazaar Malaysia' value='8400.0000' />" Return FusionCharts.RenderChart("FusionCharts/Pie3D.swf", "", xmlData, "Sales", "600", "300", False, False)this is the code that is working perfectly: xmlData = "<chart caption='Sales By Media' subCaption='By Media' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' Units'>" _ & "<set label='Harpers Bazaar Malaysia' value='8400.0000' />" Return FusionCharts.RenderChart("FusionCharts/Pie3D.swf", "", xmlData, "Sales", "600", "300", False, False) my problem is that when i try replacing the single code ' with ' it gives me "Invalid XML Data". Besides, i tried generate my XML into a .xml file and manually implement the FusionChart with the .xml file which contains the ' it works alright. That's the weird part of it. Any suggestion would be much appreciated. Thank You.
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
Please try %26apos; once
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/7/2008 11:22:36 AM
Posts: 1,
Visits: 1
|
|
| The same problem but i use a php variable (fusionfree) for the caption (my data is OK) and the caption of grafic causes Invalid XML DATA So when i use str_replace() to change the '&' to '%26apos;' the grafic apears but when the caption show like this: the data is: S&P and show in grafic: S%26apos Any ideas ??
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
Alternate would be to use dataURL method and directly provide &
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|