Tool tip in multiple lines
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Tool tip in multiple lines Expand / Collapse
Author
Message
Posted 3/27/2007 4:08:46 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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!!
Post #627
Posted 3/27/2007 9:09:55 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts 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
Post #636
Posted 3/29/2007 1:57:00 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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
Post #688
Posted 4/2/2007 11:51:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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&lt;BR&gt;Score: 420&lt;BR&gt;Rank:2'/>";
   $strXML .= "<set label='Feb' value='857' tooltext='John Miller&lt;BR&gt;Score: 420&lt;BR&gt;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

Post #733
Posted 4/3/2007 3:48:22 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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

Post #736
Posted 4/9/2007 2:59:30 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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!!
Post #787
Posted 4/9/2007 3:16:21 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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'"

Post #788
Posted 6/12/2007 8:48:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #1286
Posted 9/3/2007 7:54:08 AM
Junior Member