Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

On State hover, how to show some description text about the state? #71

Open
ramsabarish opened this issue Dec 6, 2017 · 2 comments
Open

Comments

@ramsabarish
Copy link

I want show some description about the State on mousehover. So far i could not find any option to do this. Kindly help me out.

@ramsabarish
Copy link
Author

map

@kjrhody
Copy link

kjrhody commented Dec 6, 2017

Since the state name comes from data.name you could create a list of items to get for each state depending on that abbreviation (e.g.:

let informationList = {
"AL" : "Some information",
"AK" : Some information",
}

$('#tooltip').text(informationList[data.name]).show();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants