﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts v3 / Using FusionCharts / FusionCharts and PHP  / Tool tip in multiple lines / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Wed, 07 Jan 2009 17:36:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>Hi there,&lt;br&gt;&lt;br&gt;I want my info to be displayed in two lines in the tooltip too.&lt;br&gt;&lt;br&gt;I tried to follow the instructions, but it didn't work.&lt;br&gt;&lt;br&gt;I use the dataURL method:[code]    var chart = new FusionCharts("http://localhost/etc/FusionCharts_Evaluation/Charts/Bubble.swf", "ChartId", "800", "700", "0", "0");&lt;br&gt;    chart.setDataURL("fusioncharts_1-data.php");&lt;br&gt;    chart.render("chartdiv");[/code]&lt;br&gt;&lt;br&gt;And I have this in the XML: [code]    name="Albania  &amp;lt;BR&amp;gt;   x=1207 y=75"[/code]&lt;br&gt;&lt;br&gt;But it displays it in the tooltip like [code]    Albania  &lt; BR &gt;   x=1207 y=75[/code] (without spaces around the BR)&lt;br&gt;&lt;br&gt;&lt;br&gt;Can anyone give me a hint? I specified too the &lt;styles&gt; as described above... Is this mandatory? &lt;br&gt;&lt;br&gt;Thanks for any advice!&lt;br&gt;&lt;br&gt;[b]EDIT:[/b] Okay, okay... Internal problem with XML coding yielded in not proper functioning. Alright now. Sorry for any confusion!</description><pubDate>Mon, 03 Sep 2007 07:54:08 GMT</pubDate><dc:creator>luftikus143</dc:creator></item><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>hi,&lt;br&gt;&lt;br&gt;u can also do newline charcher insted of  breaking line.&lt;br&gt;it's working fine in my code.</description><pubDate>Tue, 12 Jun 2007 08:48:50 GMT</pubDate><dc:creator>ram</dc:creator></item><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>Finally i managed to put in multiple lines the tool-tip!!!!&lt;br&gt;&lt;br&gt;you have to url encode the simbol '&amp;'&lt;br&gt;&lt;br&gt;&lt;br&gt;$amp=urlencode('&amp;');&lt;br&gt; "toolText='Jhon".$amp."lt;BR".$amp."gt;Miller'"&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 09 Apr 2007 03:16:21 GMT</pubDate><dc:creator>halizia</dc:creator></item><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>sorry but, i've just try to copy the example again but it doesn't work.&lt;br&gt;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"&lt;br&gt;The example works well when i don't insert "&amp;lt;BR&amp;gt;"&lt;br&gt;&lt;br&gt;Thanks!!</description><pubDate>Mon, 09 Apr 2007 02:59:30 GMT</pubDate><dc:creator>halizia</dc:creator></item><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>Some times you just have to read the documentation.&lt;/P&gt;&lt;P&gt;I figured out what you mend with the dataURL metod, and then there is no problem.&lt;/P&gt;&lt;P&gt;This is a very nice piece of software. :-)&lt;/P&gt;&lt;P&gt;/kent</description><pubDate>Tue, 03 Apr 2007 15:48:22 GMT</pubDate><dc:creator>tmn4you</dc:creator></item><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>Hi i have also problem with multi-line tooltips i php. Please se the code snip, direct copy from the doc.&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR&gt;//We've included ../Includes/FusionCharts.php, which contains functions&lt;BR&gt;//to help us easily embed the charts.&lt;BR&gt;  include("FusionCharts/FusionCharts.php");&lt;BR&gt;?&amp;gt;&lt;BR&gt;&amp;lt;HTML&amp;gt;&lt;BR&gt;   &amp;lt;HEAD&amp;gt;&lt;BR&gt;      &amp;lt;TITLE&amp;gt;FusionCharts - Simple Column 3D Chart using dataXML method&amp;lt;/TITLE&amp;gt; &lt;BR&gt;   &amp;lt;/HEAD&amp;gt;&lt;BR&gt;&amp;lt;BODY&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR&gt;   //Create an XML data document in a string variable&lt;BR&gt;   $strXML  = "";&lt;BR&gt;   $strXML .= "&amp;lt;chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0'    formatNumberScale='0' showBorder='1'&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Jan' value='462' &lt;STRONG&gt;tooltext='John Miller&amp;amp;lt;BR&amp;amp;gt;Score: 420&amp;amp;lt;BR&amp;amp;gt;Rank:2'/&lt;/STRONG&gt;&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Feb' value='857' &lt;STRONG&gt;tooltext='John Miller&amp;amp;lt;BR&amp;amp;gt;Score: 420&amp;amp;lt;BR&amp;amp;gt;Rank:2'/&lt;/STRONG&gt;&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Mar' value='671' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Apr' value='494' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='May' value='761' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Jun' value='960' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Jul' value='629' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Aug' value='622' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Sep' value='376' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Oct' value='494' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Nov' value='761' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;set label='Dec' value='960' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;styles&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;definition&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;style name='myHTMLFont' type='font' isHTML='1' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;/definition&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;application&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;apply toObject='TOOLTIP' styles='myHTMLFont' /&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;/application&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;/styles&amp;gt;";&lt;BR&gt;   $strXML .= "&amp;lt;/chart&amp;gt;";&lt;/P&gt;&lt;P&gt;   //Create the chart - Column 3D Chart with data from strXML variable using dataXML method&lt;BR&gt;   echo renderChartHTML("FusionCharts/Column2D.swf", "", $strXML, "myNext", 600, 300, true);&lt;BR&gt;?&amp;gt;&lt;BR&gt;&amp;lt;/BODY&amp;gt;&lt;BR&gt;&amp;lt;/HTML&amp;gt;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;INFO: XML Data provided using dataXML method.&lt;BR&gt;INFO: XML Data provided using dataXML method.&lt;BR&gt;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 %, &amp;amp;, ' or accented characters), please URL Encode them.&lt;/P&gt;&lt;P&gt;It's working fine when i use html only...&lt;/P&gt;&lt;P&gt;/kent</description><pubDate>Mon, 02 Apr 2007 11:51:06 GMT</pubDate><dc:creator>tmn4you</dc:creator></item><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>i'm not using the dataurl method, is it in the only case i could use it??&lt;br&gt;&lt;br&gt;i'd like to use it in a database method.&lt;br&gt;&lt;br&gt;thanks</description><pubDate>Thu, 29 Mar 2007 01:57:00 GMT</pubDate><dc:creator>halizia</dc:creator></item><item><title>RE: Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>Please make sure you're using dataURL method.</description><pubDate>Tue, 27 Mar 2007 09:09:55 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>Tool tip in multiple lines</title><link>http://www.fusioncharts.com/forum/Topic627-31-1.aspx</link><description>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. &lt;br&gt;&lt;br&gt;Thanks!!</description><pubDate>Tue, 27 Mar 2007 04:08:46 GMT</pubDate><dc:creator>halizia</dc:creator></item></channel></rss>