Brian Maring

Only Display ToolTip for certain counties

Recommended Posts

I am using the California county map and only have data for approximately half of the counties.

 

 

 

The ToolText for counties with data contains the county name and the data value. However, when I have no data, the tooltip still appears with no text inside it.

 

 

 

Would it be possible to have the tooltip only appear for counties where I have data and a specified ToolText?

 

 

 

Thanks,

 

Brian

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Brian,

 

 

 

I apologize for the delay in the reply.

 

 

 

This is possible if you declare the toolText just beside the particular entity id.

 

 

 

Ref:-http://www.fusioncharts.com/maps/docs/Contents/CustomLabels.html

 

 

 

However if it still does not work then could you please send us the XML code so that we may take a look.

 

 

 

Awaiting for your reply:)

Share this post


Link to post
Share on other sites

Here's my XML.

 

 

 

Currently I have toolText=' ' for counties I do not have data for.

 

If I set toolText='' for these counties, the county name is displayed as the tooltext.

 

 

 

I would like for there to be no toolText at all if I do not have data for the particular county.

 

 

 

Thank you,

 

Brian

Map XML.txt

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Brian,

 

 

 

Could you please try the following steps:-

 

 

 

1)<chart...hoveronEmpty='0'>

 

 

 

2) <entity id='001'/>[Please do not put any 'value' in those entity id where you do not want to show any toolText].

 

 

 

We have attached a sample map below. Please have a look.

 

 

 

Hope this helps.:)

maps.zip

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Brian,

Glad that we could help you.

You are always welcome in the FusionCharts forum.:)

Happy FusionCharting.

Edited by Guest

Share this post


Link to post
Share on other sites

hi,

 

 

 

I have same problem in Fusion map for US map, i tried, followed World XML give in Maps.zip, but it is for World map and didn't work for USA map, i tried to set hoveOnEmpty in main tag then it set all states tooltip to empty but i only want to hide tooltip for few sates

 

 

 

Pls help me on this

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

 

 

 

You can choose not to give any values for the states where you do not wish to show the toolTip and then set hoverOnEmpty='0' in the <map> element.

 

 

 

This attribute decides whether to show tool tip for those entities whose value has not been defined in the XML data.

 

 

 

Thus in your XML if your entity elements do not have any values, the toolTip will not appear for them.

Edited by Guest

Share this post


Link to post
Share on other sites

Hi, thanks for your immediate reply,

 

 

 

Please see the attached XML file i m using.

 

When i set hoverOnEmpty='0' in , it set all states tool tip to empty

 

 

 

Pls check where i m wrong and if possible modify the xml file accordingly.

 

 

 

I want to do the same as its done for World Map in Map.zip file.

 

 

 

Waiting for your reply.

USAMap.xml

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

The value field must contain a numeric value. When I tested the USA map with your XML, none of the entities were displaying the toolTip, since all the value fields for the entities were undefined.

e.g.   <entity id="FL" value="100" link="FilterClientProjectList('FL');" fontBold="1"  /> .

Apart from that everything is working fine.

Share this post


Link to post
Share on other sites

Ok its working now,

 

 

 

setting hoverOnEmpty='0' will set all states tool tip to empty but

 

 

 

setting value='1' for any state show tool tip for that particular state

 

 

 

Remember you need to set value='1' not value='AK' or value='AL'

 

 

 

Thanks a'lot

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now