How to insert line breaks on displayValue attribute of line (trendline)
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


««12

How to insert line breaks on displayValue... Expand / Collapse
Author
Message
Posted 1/10/2007 11:58:08 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
Against which chart are you using this XML code?

You need to use dataURL method and specify the code as:

<br>


Thanks,
Pallav Nadhani
FusionCharts Team
Post #143
Posted 1/11/2007 5:53:07 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 3/19/2008 12:10:36 PM
Posts: 20, Visits: 39
I'm using the dataXML method. Why would that make a difference?
Post #152
Posted 1/11/2007 11:46:32 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
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.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #157
Posted 2/19/2008 2:24:27 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/25/2008 3:29:59 PM
Posts: 4, Visits: 9
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...

Post #4587
Posted 2/21/2008 4:03:01 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
TO use % in dataXML method, encode it as %25

Thanks,
Pallav Nadhani
FusionCharts Team
Post #4630
Posted 2/29/2008 11:42:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/25/2008 3:29:59 PM
Posts: 4, Visits: 9
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.

Post #4843
Posted 5/30/2008 9:52:55 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 9/30/2008 5:02:53 PM
Posts: 12, Visits: 18
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 &lt;br&gt; 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="&lt;b&gt; bold text &lt;/b&gt;" correctly renders as bold text.  <p> and <br> tags, however, do not produce any effect.

Help!

Neil

Post #6504
Posted 5/30/2008 10:17:46 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 9/30/2008 5:02:53 PM
Posts: 12, Visits: 18
Nevermind...I found the answer here: http://www.fusioncharts.com/forum/FindPost4389.aspx

Thanks!  You guys are awsome...

Post #6506
« Prev Topic | Next Topic »

««12

Permissions Expand / Collapse