markmarkoh / datamaps

Customizable SVG map visualizations for the web in a single Javascript file using D3.js
http://datamaps.github.io
MIT License
3.78k stars 1.01k forks source link

Slow transition in popup message and selected regions #351

Open prabshr opened 7 years ago

prabshr commented 7 years ago

Hi Mark,

Recently I worked on developing this interactive map using using datamaps with d3.csv and topojson files.

(http://www2.meteo.uni-bonn.de/staff/pshrestha/dataVis/entries/test.html)

Since d3.csv is an asynchronous call, I had to keep my function to extract the popup message based on the analysis of the csv file (which contains couple of loops) and the datamap inside this function.

This seems to be slowing down the transition of the popup message and the selected zones, when the users are selecting the regions.

Can this be improved with a better algorithm?

Cheers, P

prabshr commented 7 years ago

I noticed that the slow transitioning is partly due to the location of the popup message in the upper right corner of the cursor, instead of usual bottom corner, which interferes with the smooth transition of the cursor. So, is their a way to specify the location of the popup message in datamaps?

manasa884 commented 6 years ago

I am also trying to display the popup in a static location on the side of the map instead of at the hover location. How would I go about doing this?