|
|
|
Junior Member
      
Group: Forum Members
Last Login: 9/11/2007 3:43:24 AM
Posts: 13,
Visits: 42
|
|
hello i'm trying to show my tool tips in 2 lines but, the example in the documentation doesn't work, the error message is: Invalid XML Data.
Thanks!!
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: Yesterday @ 8:20:12 AM
Posts: 2,194,
Visits: 521
|
|
Please make sure you're using dataURL method.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 9/11/2007 3:43:24 AM
Posts: 13,
Visits: 42
|
|
i'm not using the dataurl method, is it in the only case i could use it??
i'd like to use it in a database method.
thanks
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/25/2007 3:03:20 AM
Posts: 3,
Visits: 6
|
|
| Hi i have also problem with multi-line tooltips i php. Please se the code snip, direct copy from the doc. <?php //We've included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("FusionCharts/FusionCharts.php"); ?> <HTML> <HEAD> <TITLE>FusionCharts - Simple Column 3D Chart using dataXML method</TITLE> </HEAD> <BODY> <?php //Create an XML data document in a string variable $strXML = ""; $strXML .= "<chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' formatNumberScale='0' showBorder='1'>"; $strXML .= "<set label='Jan' value='462' tooltext='John Miller<BR>Score: 420<BR>Rank:2'/>"; $strXML .= "<set label='Feb' value='857' tooltext='John Miller<BR>Score: 420<BR>Rank:2'/>"; $strXML .= "<set label='Mar' value='671' />"; $strXML .= "<set label='Apr' value='494' />"; $strXML .= "<set label='May' value='761' />"; $strXML .= "<set label='Jun' value='960' />"; $strXML .= "<set label='Jul' value='629' />"; $strXML .= "<set label='Aug' value='622' />"; $strXML .= "<set label='Sep' value='376' />"; $strXML .= "<set label='Oct' value='494' />"; $strXML .= "<set label='Nov' value='761' />"; $strXML .= "<set label='Dec' value='960' />"; $strXML .= "<styles>"; $strXML .= "<definition>"; $strXML .= "<style name='myHTMLFont' type='font' isHTML='1' />"; $strXML .= "</definition>"; $strXML .= "<application>"; $strXML .= "<apply toObject='TOOLTIP' styles='myHTMLFont' />"; $strXML .= "</application>"; $strXML .= "</styles>"; $strXML .= "</chart>"; //Create the chart - Column 3D Chart with data from strXML variable using dataXML method echo renderChartHTML("FusionCharts/Column2D.swf", "", $strXML, "myNext", 600, 300, true); ?> </BODY> </HTML> I get the following error: INFO: XML Data provided using dataXML method. INFO: XML Data provided using dataXML method. ERROR: Invalid XML encountered. An attribute value is not properly terminated. Check the XML data that you've provided. If you've special characters in your XML (like %, &, ' or accented characters), please URL Encode them. It's working fine when i use html only... /kent
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/25/2007 3:03:20 AM
Posts: 3,
Visits: 6
|
|
| Some times you just have to read the documentation. I figured out what you mend with the dataURL metod, and then there is no problem. This is a very nice piece of software. :-) /kent
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 9/11/2007 3:43:24 AM
Posts: 13,
Visits: 42
|
|
sorry but, i've just try to copy the example again but it doesn't work.
i'm using fusioncharts developer, i don't know if it's impossible to use it. The error message i receive is: "Invalid XML Data"
The example works well when i don't insert "<BR>"
Thanks!!
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 9/11/2007 3:43:24 AM
Posts: 13,
Visits: 42
|
|
Finally i managed to put in multiple lines the tool-tip!!!!
you have to url encode the simbol '&'
$amp=urlencode('&');
"toolText='Jhon".$amp."lt;BR".$amp."gt;Miller'"
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/12/2007 8:45:42 AM
Posts: 1,
Visits: 1
|
|
hi,
u can also do newline charcher insted of breaking line.
it's working fine in my code.
|
|
|
|
|
Junior Member
![]() | | | |