Dan Report post Posted January 4, 2007 I have a rather long displayValue for a horizontal trend line. Is there a way to insert a line break? For example: <line startValue='1' valueOnRight='1' displayValue='This is line 1. I want this on line 2.' /> Share this post Link to post Share on other sites
Pallav Report post Posted January 5, 2007 You can use the same concept as explained at http://www.fusioncharts.com/FusionCharts/Docs/Contents/TTip_Lines.html Share this post Link to post Share on other sites
Dan Report post Posted January 5, 2007 Thank Pallev, but I already tried that. Does not render the <BR> as HTML. I did creat the style definition from the demo code and applied it to both TRENDLINES and TRENDVALUES with no luck. Share this post Link to post Share on other sites
Pallav Report post Posted January 7, 2007 Please try this. It works for us here: <trendlines> <line startValue='1' valueOnRight='1' displayValue='This is line 1. <BR>I want this on line 2.' /> </trendlines> <styles> <definition> <style name='myHTMLFont' type='font' isHTML='1' /> </definition> <application> <apply toObject='TRENDVALUES' styles='myHTMLFont' /> </application> </styles> Share this post Link to post Share on other sites
Dan Report post Posted January 8, 2007 Simply does not work. Perhaps it has something to do with the fact that I am using a scatter chart (scatter.swf)? Share this post Link to post Share on other sites
Pallav Report post Posted January 9, 2007 Can you please send your XML file as attachment? Share this post Link to post Share on other sites
Dan Report post Posted January 9, 2007 Here is a sample xml document. dataxml.txt Share this post Link to post Share on other sites
Scott K Report post Posted January 10, 2007 I've just tried a multi-line tooltext, and that doesn't work either. There are no examples of such in the galleries, so there's no working example to learn from. I get "invalid XML" if I try to insert <BR> Here's a snippet from the XML: Removal of <br> fixes it up. Share this post Link to post Share on other sites
Scott K Report post Posted January 10, 2007 Well, let's try inserting the code again ;-) Share this post Link to post Share on other sites
Scott K Report post Posted January 10, 2007 Okay, so the code / code thing doesn't work (or at least not as I expected). So here's the offending line with the brackets removed: set value='1.8' toolText='11.2s, <br>1.8MPH, 3526.0RPM, 95.3%25' Share this post Link to post Share on other sites
Pallav Report post Posted January 10, 2007 Against which chart are you using this XML code? You need to use dataURL method and specify the code as: <br> Share this post Link to post Share on other sites
Scott K Report post Posted January 11, 2007 I'm using the dataXML method. Why would that make a difference? Share this post Link to post Share on other sites
Pallav Report post Posted January 11, 2007 If you're using the dataXML method, there would be a conflict between the < specified in the XML, the actual XML element lt opening sign and the HTML lt sign to embed the chart. So, you need to use this in dataURL method. Share this post Link to post Share on other sites
BAMACSGUY Report post Posted February 19, 2008 (edited) If you want to use the dataXML method, I found that you need to URL encode the ampersand( & ) : %26lt;br%26gt; instead of: <br> It works for me, but I know that FusionCharts also does not like the '%' operator in the XML, so you may still receive an 'Invalid XML Data' error with this method. I just know it worked for me. I'm using C# with ASP.NET 2.0 and I'm randomly generating my XML as strings in the Code-Behind before I push out to the client. Hope this helps... Edited February 29, 2008 by Guest Share this post Link to post Share on other sites
Pallav Report post Posted February 21, 2008 TO use % in dataXML method, encode it as %25 Share this post Link to post Share on other sites
BAMACSGUY Report post Posted February 29, 2008 (edited) Ok, now I understand. I did not require the use of the '%' character for the code I mentioned. To use the '%' the way you are referring, Pallav, yes that is how I would need to use it. However, the '%' character in the code I provided above is used to encode the '&' character where by '&' --> %26. This allowed me to use the above method to put HTML in my trendlines using the dataXML method and not the dataURL method. Edited February 29, 2008 by Guest Share this post Link to post Share on other sites
nlaslett Report post Posted May 30, 2008 I have tried to replicate this but have been unsuccessful. I am using FusionMaps, and have included the following XML (using dataURL method): <styles> <definition> <style name="myHTMLFont" type="font" isHTML="1" /> </definition> <application> <apply toObject="TOOLTIP" styles="myHTMLFont" /> </application> </styles> Map entities have toolText="line one <br> line two" ...but line breaks do not render. They are being parsed, however, because my toolTip renders as "line one line two", without the <br> tag (which does display if I set isHTML="0"). toolText="<b> bold text </b>" correctly renders as bold text. <p> and <br> tags, however, do not produce any effect. Help! Neil Share this post Link to post Share on other sites
nlaslett Report post Posted May 30, 2008 Nevermind...I found the answer here: http://www.fusioncharts.com/forum/FindPost4389.aspx Thanks! You guys are awsome... Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted April 21, 2010 Hi, Glad that your issue is resolved. Thanks for your appreciation. Keep smiling and keep FusionCharting. Share this post Link to post Share on other sites
marguin Report post Posted May 5, 2010 (edited) using instead of <br> it works! Edited May 5, 2010 by Guest Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted May 5, 2010 Hi, Glad your isuue is resolved. Keep smiling and keep FusionCharting. Share this post Link to post Share on other sites