﻿<?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 / General usage  / How to insert line breaks on displayValue attribute of line (trendline) / 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, 03 Dec 2008 02:28:31 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Nevermind...I found the answer here: &lt;A href="http://www.fusioncharts.com/forum/FindPost4389.aspx"&gt;http://www.fusioncharts.com/forum/FindPost4389.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!  You guys are awsome...</description><pubDate>Fri, 30 May 2008 10:17:46 GMT</pubDate><dc:creator>nlaslett</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>I have tried to replicate this but have been unsuccessful.&lt;/P&gt;&lt;P&gt;I am using FusionMaps, and have included the following XML (using dataURL method):&lt;/P&gt;&lt;P&gt;&amp;lt;styles&amp;gt;&lt;BR&gt; &amp;lt;definition&amp;gt;&lt;BR&gt;  &amp;lt;style name="myHTMLFont" type="font" isHTML="1" /&amp;gt; &lt;BR&gt; &amp;lt;/definition&amp;gt;&lt;BR&gt; &amp;lt;application&amp;gt;&lt;BR&gt;  &amp;lt;apply toObject="TOOLTIP" styles="myHTMLFont" /&amp;gt; &lt;BR&gt; &amp;lt;/application&amp;gt;&lt;BR&gt;&amp;lt;/styles&amp;gt;&lt;/P&gt;&lt;P&gt;Map entities have toolText="line one &amp;amp;lt;br&amp;amp;gt; line two"&lt;/P&gt;&lt;P&gt;...but line breaks do not render.  They are being parsed, however, because my toolTip renders as "line one line two", without the &amp;lt;br&amp;gt; tag (which does display if I set isHTML="0").&lt;/P&gt;&lt;P&gt;toolText="&amp;amp;lt;b&amp;amp;gt; bold text &amp;amp;lt;/b&amp;amp;gt;" correctly renders as &lt;STRONG&gt;bold text&lt;/STRONG&gt;.  &amp;lt;p&amp;gt; and &amp;lt;br&amp;gt; tags, however, do not produce any effect.&lt;/P&gt;&lt;P&gt;Help!&lt;/P&gt;&lt;P&gt;Neil</description><pubDate>Fri, 30 May 2008 09:52:55 GMT</pubDate><dc:creator>nlaslett</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>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 '&amp;amp;' character where by '&amp;amp;' --&amp;gt; %26.&lt;P&gt;This allowed me to use the above method to put HTML in my trendlines using the dataXML method and not the dataURL method.</description><pubDate>Fri, 29 Feb 2008 11:42:09 GMT</pubDate><dc:creator>BAMACSGUY</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>TO use % in dataXML method, encode it as %25</description><pubDate>Thu, 21 Feb 2008 04:03:01 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>If you want to use the dataXML method, I found that you need to URL encode the ampersand( &amp;amp; ) :&lt;P&gt;%26lt;br%26gt;&lt;/P&gt;&lt;P&gt;instead of:&lt;/P&gt;&lt;P&gt;&amp;amp;lt;br&amp;amp;gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Hope this helps...</description><pubDate>Tue, 19 Feb 2008 14:24:27 GMT</pubDate><dc:creator>BAMACSGUY</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>If you're using the dataXML method, there would be a conflict between the &amp;amp;lt; specified in the XML, the actual XML element lt opening sign and the HTML lt sign to embed the chart.&lt;P&gt;So, you need to use this in dataURL method.</description><pubDate>Thu, 11 Jan 2007 23:46:32 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>I'm using the dataXML method. Why would that make a difference?</description><pubDate>Thu, 11 Jan 2007 17:53:07 GMT</pubDate><dc:creator>Scott K</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Against which chart are you using this XML code? &lt;/P&gt;&lt;P&gt;You need to use dataURL method and specify the code as:&lt;/P&gt;&lt;P&gt;[code]&amp;amp;lt;br&amp;amp;gt;[/code]</description><pubDate>Wed, 10 Jan 2007 23:58:08 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>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:&lt;br&gt;&lt;br&gt;set value='1.8' toolText='11.2s, &amp;lt;br&amp;gt;1.8MPH, 3526.0RPM, 95.3%25'</description><pubDate>Wed, 10 Jan 2007 16:51:17 GMT</pubDate><dc:creator>Scott K</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Well, let's try inserting the code again ;-)&lt;br&gt;&lt;br&gt;[code]&lt;set value='1.8' toolText='11.2s, &amp;lt;br&amp;gt;1.8MPH, 3526.0RPM, 95.3%25'/&gt;[/code]</description><pubDate>Wed, 10 Jan 2007 16:49:46 GMT</pubDate><dc:creator>Scott K</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>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 &amp;lt;BR&amp;gt;&lt;br&gt;&lt;br&gt;Here's a snippet from the XML:&lt;br&gt;&lt;br&gt;[code]&lt;set value='32.1' toolText='6.8s, &amp;lt;br&amp;gt;32.1MPH, 5600.0RPM, 0.0%25'/&gt;[/code]&lt;br&gt;&lt;br&gt;Removal of &amp;lt;br&amp;gt; fixes it up.</description><pubDate>Wed, 10 Jan 2007 16:41:54 GMT</pubDate><dc:creator>Scott K</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Here is a sample xml &amp;#100;ocument.</description><pubDate>Tue, 09 Jan 2007 09:26:57 GMT</pubDate><dc:creator>Dan</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Can you please send your XML file as attachment?</description><pubDate>Tue, 09 Jan 2007 09:14:29 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Simply does not work. Perhaps it has something to do with the fact that I am using a scatter chart (scatter.swf)?</description><pubDate>Mon, 08 Jan 2007 10:53:13 GMT</pubDate><dc:creator>Dan</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Please try this. It works for us here:&lt;/P&gt;&lt;P&gt;[code]&amp;lt;trendlines&amp;gt;&lt;BR&gt;  &amp;lt;line startValue='1' valueOnRight='1' displayValue='This is line 1. &amp;amp;lt;BR&amp;amp;gt;I want this on line 2.' /&amp;gt;&lt;BR&gt; &amp;lt;/trendlines&amp;gt;&lt;BR&gt; &amp;lt;styles&amp;gt;&lt;BR&gt;      &amp;lt;definition&amp;gt;&lt;BR&gt;         &amp;lt;style name='myHTMLFont' type='font' isHTML='1' /&amp;gt;&lt;BR&gt;      &amp;lt;/definition&amp;gt;&lt;BR&gt;      &amp;lt;application&amp;gt;&lt;BR&gt;         &amp;lt;apply toObject='TRENDVALUES' styles='myHTMLFont' /&amp;gt;&lt;BR&gt;      &amp;lt;/application&amp;gt;&lt;BR&gt;   &amp;lt;/styles&amp;gt;[/code]</description><pubDate>Sun, 07 Jan 2007 03:59:40 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>Thank Pallev, but I already tried that. Does not render the &amp;amp;lt;BR&amp;amp;gt; as HTML. &lt;/P&gt;&lt;P&gt;I did creat the style definition from the demo code and applied it to both TRENDLINES and TRENDVALUES with no luck.</description><pubDate>Fri, 05 Jan 2007 14:53:00 GMT</pubDate><dc:creator>Dan</dc:creator></item><item><title>RE: How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>You can use the same concept as explained at &lt;A href="http://www.fusioncharts.com/FusionCharts/Docs/Contents/TTip_Lines.html"&gt;http://www.fusioncharts.com/FusionCharts/Docs/Contents/TTip_Lines.html&lt;/A&gt;</description><pubDate>Fri, 05 Jan 2007 13:02:19 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>How to insert line breaks on displayValue attribute of line (trendline)</title><link>http://www.fusioncharts.com/forum/Topic101-28-1.aspx</link><description>I have a rather long displayValue for a horizontal trend line. Is there a way to insert a line break?&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;[code]&amp;lt;line startValue='1' valueOnRight='1' displayValue='This is line 1. I want this on line 2.' /&amp;gt;[/code]</description><pubDate>Thu, 04 Jan 2007 14:35:16 GMT</pubDate><dc:creator>Dan</dc:creator></item></channel></rss>