|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 2/7/2008 6:16:01 AM
Posts: 3,
Visits: 7
|
|
| Is there a way to do multi-line tool tips for an entity value ???? ex: Total Accounts: 257 Total Sales: $1,500,450 I tried and [backslash]n and [backslash]r[backslash]n in the XML file, but both just showed up in the tool tip. Thanks.
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884,
Visits: 1,420
|
|
| hi, You need to use a special font style attribute for the tooltip object : The XML for the style for tooltip would be like this : <styles> <definition> <style name='TTipFont' type='font' isHTML='1' /> </definition> <application> <apply toObject='TOOLTIP' styles='TTipFont' /> </application> </styles> Now in the tooltip values you need to put HTML <BR> to provide line breaks: say if you want to show : Total Accounts: 257 Total Sales: $1,500,450 <entity id='001' tooltext='Total Accounts: 257<br>Total Sales: $1,500,450' /> Note : <br> - this is the line break <BR> in XML encoded form. The above entity XML will work for dataURL method . If you are using dataXML mehtod to provide XML you need to use %26lt;br%26gt; instead of <br>
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 2/7/2008 6:16:01 AM
Posts: 3,
Visits: 7
|
|
| Thanks for the quick reply. I understand the method you are using to support this. However when I plug in the suggested changes, I am still getting the same tooltips with all the text on 1 line.... I know it is just something stupid I am doing, but I just can't see it What am I missing here ? XML file:
<map borderColor='005879' fillColor='D7F4FF' baseFontSize='10' showBevel='0' > <data> <entity id='GA' value='1' Tooltext='Total Projects: 1<br>Total Amount: $100,002' /> <entity id='NC' value='2' Tooltext='Total Projects: 2<br>Total Amount: $200,000' /> <entity id='NC' value='3' Tooltext='Total Projects: 3<br>Total Amount: $300,000' /> <entity id='PA' value='4' Tooltext='Total Projects: 4<br>Total Amount: $400,000' /> </data> <styles> <!-- Allow HTML formatting in tooltips --> <definition> <style name='TTipFont' type='font' isHTML='1' /> </definition> <application> <apply toObject='TOOLTIP' styles='TTipFont' /> </application> </styles> </map>
Web page code:
<script language="JavaScript" src="FusionMaps_Trial/JSClass/FusionMaps.js"></script> <div id="mapUSAdiv" align="center"> Map of the US & Canada. <br /><br />Mapping support requires Javascript support and the Flash v8 player or higher </div> <script type="text/javascript"> var map = new FusionMaps("FusionMaps_Trial/Maps/FCMap_USA.swf", "Map1Id", "690", "400", "0", "0"); map.setDataURL("MapUSA6.xml"); map.render("mapUSAdiv"); </script>
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884,
Visits: 1,420
|
|
| hi, opps...can you just try using BR (in caps) instead of br and try again.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 2/7/2008 6:16:01 AM
Posts: 3,
Visits: 7
|
|
| Works great with the CAPITAL BR. Thanks !!! Should your HTML parsing require all caps (is this a requirement or a tiny bug) ? Also, is there any way to use a subset of features to use a lower version of Flash ? We don't think that all our users have Flash v8 or higher installed.
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: Yesterday @ 8:20:12 AM
Posts: 2,194,
Visits: 521
|
|
Hi,
In our code, we parse for capital BRs. We'll make it generic in next version.
We've FusionCharts Free in Flash v6. You can see it at www.fusioncharts.com/free
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/28/2008 1:53:15 PM
Posts: 3,
Visits: 20
|
|
Hi there -
I've searched over and over in the forum to find a solution that works for line breaks on the labels. I am using the DataXML method and have seen that you need to use %26lt;BR%26gt; to create the in lieu of <BR>, which is used for the dataURL method. I have tried this and and when the label display, it shows a tag instead of actually creating a line break.
Help??
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 6:58:37 AM
Posts: 632,
Visits: 1,928
|
|
hi, could you please add this style in map xml<styles> <definition> <style name='myHTMLFont' type='font' isHTML='1' /> </definition> <application> <apply toObject='LABELS' styles='myHTMLFont' /> </application> </styles>
Thanks,
Arindam FusionCharts Team
www.fusioncharts.com
|
|
|
| | |