jqvmap tooltip not working

Home / Uncategorized / jqvmap tooltip not working

Question:
Jqvmap tooltip is not working. Everything else is working fine. My code is given below.
$(document).ready(function(){

// World map by jvectormap
$(‘#world-map’).vectorMap({
map : ‘world_mill_en’,
backgroundColor : ‘transparent’,
regionStyle : {
initial: {
fill : ‘#e4e4e4’,
‘fill-opacity’ : 1,
‘stroke-opacity’: 1
}
},
series : {
regions: [
{
values : visitorsData,
scale : [‘#92c1dc’, ‘#ebf4f9’],
normalizeFunction: ‘polynomial’
}
]
},
onRegionLabelShow: function (e, el, code) {
if (typeof visitorsData[code] != ‘undefined’)
el.html(el.html() + ‘: ‘ + visitorsData[code] + ‘ new visitors’);
}
});
});


Answer:
you may be forgot to add some css. check for a CSS file in dist folder which you may forgot to include. After adding styles, zoom controls and tooltips will appeare.
Read more

Leave a Reply

Your email address will not be published. Required fields are marked *